net/ixgbe/base: simplify VLAN management
authorBeilei Xing <beilei.xing@intel.com>
Thu, 23 Jun 2016 07:22:29 +0000 (15:22 +0800)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 27 Jun 2016 14:17:53 +0000 (16:17 +0200)
commitb978f7b38c141402796a35d76754409e8df57807
tree940fd7e27ea0ce8f1a79d6e3d6240145b137c0d1
parent7c9a0b715d0b91085af62f87b9e2f47557794671
net/ixgbe/base: simplify VLAN management

This patch simplifies the adding and removing VLANs from
VFTA/VLVF/VLVFB registers. The logic to determine the registers to use
has been simplified to (vid / 32) and (1 - vid / 32). Many conditional
paths and checks are no longer needed with this patch.

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/ixgbe/base/ixgbe_api.c
drivers/net/ixgbe/base/ixgbe_api.h
drivers/net/ixgbe/base/ixgbe_common.c
drivers/net/ixgbe/base/ixgbe_common.h
drivers/net/ixgbe/base/ixgbe_type.h