[dpdk-dev] [PATCH v2] ixgbe: fix bad shift operation in ixgbe_set_pool_rx/tx

2016-04-25 Thread Bruce Richardson
On Mon, Apr 25, 2016 at 11:35:44AM +0100, Bruce Richardson wrote: > On Fri, Apr 22, 2016 at 05:35:57PM +0200, Tomasz Kulasek wrote: > > Fix issue reported by Coverity. > > > > Coverity ID 13193: Bad bit shift operation (BAD_SHIFT) > > large_shift: In expression 1 << pool, left shifting by more tha

[dpdk-dev] [PATCH v2] ixgbe: fix bad shift operation in ixgbe_set_pool_rx/tx

2016-04-25 Thread Bruce Richardson
On Fri, Apr 22, 2016 at 05:35:57PM +0200, Tomasz Kulasek wrote: > 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.

[dpdk-dev] [PATCH v2] ixgbe: fix bad shift operation in ixgbe_set_pool_rx/tx

2016-04-22 Thread Tomasz Kulasek
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 computat