aboutsummaryrefslogtreecommitdiffstats
path: root/net/8021q/vlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/8021q/vlan.c')
-rw-r--r--net/8021q/vlan.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
index e814794b0a1a..8836575f9d79 100644
--- a/net/8021q/vlan.c
+++ b/net/8021q/vlan.c
@@ -330,12 +330,13 @@ static int register_vlan_device(struct net_device *real_dev, u16 vlan_id)
330 snprintf(name, IFNAMSIZ, "vlan%.4i", vlan_id); 330 snprintf(name, IFNAMSIZ, "vlan%.4i", vlan_id);
331 } 331 }
332 332
333 new_dev = alloc_netdev(sizeof(struct vlan_dev_info), name, 333 new_dev = alloc_netdev_mq(sizeof(struct vlan_dev_info), name,
334 vlan_setup); 334 vlan_setup, real_dev->num_tx_queues);
335 335
336 if (new_dev == NULL) 336 if (new_dev == NULL)
337 return -ENOBUFS; 337 return -ENOBUFS;
338 338
339 new_dev->real_num_tx_queues = real_dev->real_num_tx_queues;
339 dev_net_set(new_dev, net); 340 dev_net_set(new_dev, net);
340 /* need 4 bytes for extra VLAN header info, 341 /* need 4 bytes for extra VLAN header info,
341 * hope the underlying device can handle it. 342 * hope the underlying device can handle it.