mirror of
https://github.com/torvalds/linux.git
synced 2026-05-01 04:52:32 -04:00
vlan: Rename VLAN_GROUP_ARRAY_LEN to VLAN_N_VID.
VLAN_GROUP_ARRAY_LEN is simply the number of possible vlan VIDs. Since vlan groups will soon be more of an implementation detail for vlan devices, rename the constant to be descriptive of its actual purpose. Signed-off-by: Jesse Gross <jesse@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
13937911f9
commit
b738127dfb
@@ -3185,7 +3185,7 @@ static void ixgbe_restore_vlan(struct ixgbe_adapter *adapter)
|
||||
|
||||
if (adapter->vlgrp) {
|
||||
u16 vid;
|
||||
for (vid = 0; vid < VLAN_GROUP_ARRAY_LEN; vid++) {
|
||||
for (vid = 0; vid < VLAN_N_VID; vid++) {
|
||||
if (!vlan_group_get_device(adapter->vlgrp, vid))
|
||||
continue;
|
||||
ixgbe_vlan_rx_add_vid(adapter->netdev, vid);
|
||||
|
||||
Reference in New Issue
Block a user