]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/8021q/vlan_netlink.c
Merge tag 'v2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[mv-sheeva.git] / net / 8021q / vlan_netlink.c
index ddc105734af7ae5664d3199ba8f4467f53a84175..be9a5c19a775aa64751b93795ccd5df1a453297a 100644 (file)
@@ -101,25 +101,6 @@ static int vlan_changelink(struct net_device *dev,
        return 0;
 }
 
-static int vlan_get_tx_queues(struct net *net,
-                             struct nlattr *tb[],
-                             unsigned int *num_tx_queues,
-                             unsigned int *real_num_tx_queues)
-{
-       struct net_device *real_dev;
-
-       if (!tb[IFLA_LINK])
-               return -EINVAL;
-
-       real_dev = __dev_get_by_index(net, nla_get_u32(tb[IFLA_LINK]));
-       if (!real_dev)
-               return -ENODEV;
-
-       *num_tx_queues      = real_dev->num_tx_queues;
-       *real_num_tx_queues = real_dev->real_num_tx_queues;
-       return 0;
-}
-
 static int vlan_newlink(struct net *src_net, struct net_device *dev,
                        struct nlattr *tb[], struct nlattr *data[])
 {
@@ -237,7 +218,6 @@ struct rtnl_link_ops vlan_link_ops __read_mostly = {
        .maxtype        = IFLA_VLAN_MAX,
        .policy         = vlan_policy,
        .priv_size      = sizeof(struct vlan_dev_info),
-       .get_tx_queues  = vlan_get_tx_queues,
        .setup          = vlan_setup,
        .validate       = vlan_validate,
        .newlink        = vlan_newlink,