summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/emulex/benet/be.h
diff options
context:
space:
mode:
authorRavikumar Nelavelli <ravikumar.nelavelli@emulex.com>2014-05-09 11:59:16 +0400
committerDavid S. Miller <davem@davemloft.net>2014-05-09 21:13:39 +0400
commitf6cbd3644ac3188b422ce83f5a95a65e4450b7c6 (patch)
tree32074f04d2909e2791ff38d29195365bf4d99b02 /drivers/net/ethernet/emulex/benet/be.h
parent05e4c6a3af71dd3848f3f54a1ccb740bdcd183e2 (diff)
downloadlinux-f6cbd3644ac3188b422ce83f5a95a65e4450b7c6.tar.xz
be2net: covert vlan array to bit-map
This patch converts the vlan u8[] used to track vlan-id membership to a bit-map as it reduces memory usage. Signed-off-by: Ravikumar Nelavelli <ravikumar.nelavelli@emulex.com> Signed-off-by: Sathya Perla <sathya.perla@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r--drivers/net/ethernet/emulex/benet/be.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h
index 2f67c7c8d413..31c376628bfd 100644
--- a/drivers/net/ethernet/emulex/benet/be.h
+++ b/drivers/net/ethernet/emulex/benet/be.h
@@ -455,7 +455,7 @@ struct be_adapter {
struct be_drv_stats drv_stats;
struct be_aic_obj aic_obj[MAX_EVT_QS];
u16 vlans_added;
- u8 vlan_tag[VLAN_N_VID];
+ unsigned long vids[BITS_TO_LONGS(VLAN_N_VID)];
u8 vlan_prio_bmap; /* Available Priority BitMap */
u16 recommended_prio; /* Recommended Priority */
struct be_dma_mem rx_filter; /* Cmd DMA mem for rx-filter */