diff options
author | Jesse Gross <jesse@nicira.com> | 2010-10-20 09:56:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-21 04:26:50 -0400 |
commit | b738127dfb469bb9f595cdace30e7f881e8146b2 (patch) | |
tree | a2d79958aa2da098dc38c72973205d516896c54b /drivers/net/igb | |
parent | 13937911f93ef52ae652f4652761aea6a58d3193 (diff) |
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>
Diffstat (limited to 'drivers/net/igb')
-rw-r--r-- | drivers/net/igb/igb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index b8dccc0ac089..0f0939caf091 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -6153,7 +6153,7 @@ static void igb_restore_vlan(struct igb_adapter *adapter) | |||
6153 | 6153 | ||
6154 | if (adapter->vlgrp) { | 6154 | if (adapter->vlgrp) { |
6155 | u16 vid; | 6155 | u16 vid; |
6156 | for (vid = 0; vid < VLAN_GROUP_ARRAY_LEN; vid++) { | 6156 | for (vid = 0; vid < VLAN_N_VID; vid++) { |
6157 | if (!vlan_group_get_device(adapter->vlgrp, vid)) | 6157 | if (!vlan_group_get_device(adapter->vlgrp, vid)) |
6158 | continue; | 6158 | continue; |
6159 | igb_vlan_rx_add_vid(adapter->netdev, vid); | 6159 | igb_vlan_rx_add_vid(adapter->netdev, vid); |