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/qlcnic/qlcnic_main.c | |
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/qlcnic/qlcnic_main.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c index 4aada0b8ceb1..f047c7c48314 100644 --- a/drivers/net/qlcnic/qlcnic_main.c +++ b/drivers/net/qlcnic/qlcnic_main.c | |||
@@ -4093,7 +4093,7 @@ qlcnic_restore_indev_addr(struct net_device *netdev, unsigned long event) | |||
4093 | if (!adapter->vlgrp) | 4093 | if (!adapter->vlgrp) |
4094 | return; | 4094 | return; |
4095 | 4095 | ||
4096 | for (vid = 0; vid < VLAN_GROUP_ARRAY_LEN; vid++) { | 4096 | for (vid = 0; vid < VLAN_N_VID; vid++) { |
4097 | dev = vlan_group_get_device(adapter->vlgrp, vid); | 4097 | dev = vlan_group_get_device(adapter->vlgrp, vid); |
4098 | if (!dev) | 4098 | if (!dev) |
4099 | continue; | 4099 | continue; |