mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
13937911f9
commit
b738127dfb
16 changed files with 27 additions and 27 deletions
|
|
@ -1820,7 +1820,7 @@ static void qeth_l3_add_vlan_mc(struct qeth_card *card)
|
|||
return;
|
||||
|
||||
vg = card->vlangrp;
|
||||
for (i = 0; i < VLAN_GROUP_ARRAY_LEN; i++) {
|
||||
for (i = 0; i < VLAN_N_VID; i++) {
|
||||
struct net_device *netdev = vlan_group_get_device(vg, i);
|
||||
if (netdev == NULL ||
|
||||
!(netdev->flags & IFF_UP))
|
||||
|
|
@ -1883,7 +1883,7 @@ static void qeth_l3_add_vlan_mc6(struct qeth_card *card)
|
|||
return;
|
||||
|
||||
vg = card->vlangrp;
|
||||
for (i = 0; i < VLAN_GROUP_ARRAY_LEN; i++) {
|
||||
for (i = 0; i < VLAN_N_VID; i++) {
|
||||
struct net_device *netdev = vlan_group_get_device(vg, i);
|
||||
if (netdev == NULL ||
|
||||
!(netdev->flags & IFF_UP))
|
||||
|
|
@ -2247,7 +2247,7 @@ static int qeth_l3_verify_vlan_dev(struct net_device *dev,
|
|||
if (!vg)
|
||||
return rc;
|
||||
|
||||
for (i = 0; i < VLAN_GROUP_ARRAY_LEN; i++) {
|
||||
for (i = 0; i < VLAN_N_VID; i++) {
|
||||
if (vlan_group_get_device(vg, i) == dev) {
|
||||
rc = QETH_VLAN_CARD;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue