diff options
author | Jesse Gross <jesse@nicira.com> | 2010-10-20 13:56:02 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-21 01:26:50 -0700 |
commit | b738127dfb469bb9f595cdace30e7f881e8146b2 (patch) | |
tree | a2d79958aa2da098dc38c72973205d516896c54b /drivers/net/e1000e | |
parent | 13937911f93ef52ae652f4652761aea6a58d3193 (diff) | |
download | kernel_samsung_aries-b738127dfb469bb9f595cdace30e7f881e8146b2.zip kernel_samsung_aries-b738127dfb469bb9f595cdace30e7f881e8146b2.tar.gz kernel_samsung_aries-b738127dfb469bb9f595cdace30e7f881e8146b2.tar.bz2 |
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/e1000e')
-rw-r--r-- | drivers/net/e1000e/netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index 992b622..5d6cdea 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c @@ -2545,7 +2545,7 @@ static void e1000_restore_vlan(struct e1000_adapter *adapter) if (!adapter->vlgrp) return; - 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; e1000_vlan_rx_add_vid(adapter->netdev, vid); |