numam-dpdk/drivers/net/ixgbe
Tomasz Kulasek 1554106b22 ixgbe: fix bit shift overflow in VMDQ pool setup
Fix issue reported by Coverity.

Coverity ID 13193: Bad bit shift operation (BAD_SHIFT)
large_shift: In expression 1 << pool, left shifting by more than 31 bits
has undefined behavior. The shift amount, pool, is at least 32.

This patch is a rework of register addr selection logic and mask
computation to made it more readable and avoid bit overflow when 32 bit
value is shifted over its size for pool > 31.

Fixes: fe3a45fd41 ("ixgbe: add VMDq support")

Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2016-05-06 15:51:22 +02:00
..
base ixgbe/base: fix VF multi-queue 2016-03-30 20:17:58 +02:00
ixgbe_82599_bypass.c ixgbe: clean up code style 2016-05-06 15:51:22 +02:00
ixgbe_bypass_api.h ixgbe: support new devices and MAC types 2016-03-16 17:09:27 +01:00
ixgbe_bypass_defines.h ixgbe: clean up code style 2016-05-06 15:51:22 +02:00
ixgbe_bypass.c ixgbe: clean up code style 2016-05-06 15:51:22 +02:00
ixgbe_bypass.h ixgbe: clean up code style 2016-05-06 15:51:22 +02:00
ixgbe_ethdev.c ixgbe: fix bit shift overflow in VMDQ pool setup 2016-05-06 15:51:22 +02:00
ixgbe_ethdev.h ixgbe: fail if too many queues for interrupt 2016-03-30 20:17:58 +02:00
ixgbe_fdir.c ixgbe: clean up code style 2016-05-06 15:51:22 +02:00
ixgbe_logs.h drivers: allow pruning log during build 2015-07-30 20:16:04 +02:00
ixgbe_pf.c ixgbe: clean up code style 2016-05-06 15:51:22 +02:00
ixgbe_regs.h ixgbe: add access to specific device info 2015-07-17 00:00:48 +02:00
ixgbe_rxtx_vec.c ixgbe: clean up code style 2016-05-06 15:51:22 +02:00
ixgbe_rxtx.c ixgbe: fix bit masking in queue stop 2016-05-06 15:51:22 +02:00
ixgbe_rxtx.h ixgbe: fix packet type for VXLAN and NVGRE on X550 2016-04-08 22:33:19 +02:00
Makefile ixgbe: disable icc false positive warning 2016-03-25 19:03:48 +01:00
rte_pmd_ixgbe_version.map ixgbe: move to drivers/net/ 2015-05-22 16:06:22 +02:00