diff options
Diffstat (limited to 'net/8021q/vlan_netlink.c')
-rw-r--r-- | net/8021q/vlan_netlink.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/net/8021q/vlan_netlink.c b/net/8021q/vlan_netlink.c index ddc105734af7..be9a5c19a775 100644 --- a/net/8021q/vlan_netlink.c +++ b/net/8021q/vlan_netlink.c | |||
@@ -101,25 +101,6 @@ static int vlan_changelink(struct net_device *dev, | |||
101 | return 0; | 101 | return 0; |
102 | } | 102 | } |
103 | 103 | ||
104 | static int vlan_get_tx_queues(struct net *net, | ||
105 | struct nlattr *tb[], | ||
106 | unsigned int *num_tx_queues, | ||
107 | unsigned int *real_num_tx_queues) | ||
108 | { | ||
109 | struct net_device *real_dev; | ||
110 | |||
111 | if (!tb[IFLA_LINK]) | ||
112 | return -EINVAL; | ||
113 | |||
114 | real_dev = __dev_get_by_index(net, nla_get_u32(tb[IFLA_LINK])); | ||
115 | if (!real_dev) | ||
116 | return -ENODEV; | ||
117 | |||
118 | *num_tx_queues = real_dev->num_tx_queues; | ||
119 | *real_num_tx_queues = real_dev->real_num_tx_queues; | ||
120 | return 0; | ||
121 | } | ||
122 | |||
123 | static int vlan_newlink(struct net *src_net, struct net_device *dev, | 104 | static int vlan_newlink(struct net *src_net, struct net_device *dev, |
124 | struct nlattr *tb[], struct nlattr *data[]) | 105 | struct nlattr *tb[], struct nlattr *data[]) |
125 | { | 106 | { |
@@ -237,7 +218,6 @@ struct rtnl_link_ops vlan_link_ops __read_mostly = { | |||
237 | .maxtype = IFLA_VLAN_MAX, | 218 | .maxtype = IFLA_VLAN_MAX, |
238 | .policy = vlan_policy, | 219 | .policy = vlan_policy, |
239 | .priv_size = sizeof(struct vlan_dev_info), | 220 | .priv_size = sizeof(struct vlan_dev_info), |
240 | .get_tx_queues = vlan_get_tx_queues, | ||
241 | .setup = vlan_setup, | 221 | .setup = vlan_setup, |
242 | .validate = vlan_validate, | 222 | .validate = vlan_validate, |
243 | .newlink = vlan_newlink, | 223 | .newlink = vlan_newlink, |