[dpdk-dev] [PATCH] igb/ixgbe: fix index overflow when resetting 4096 queue rings

2013-11-15 Thread Thomas Monjalon
15/11/2013 14:26, Ivan Boule : > On 11/15/2013 02:19 PM, Thomas Monjalon wrote: > > Rings are resetted with a loop because memset cannot be used without > > issuing a warning about volatile casting. > > The index of the loop was a 16-bit variable which is is sufficient for > > ring entries number b

[dpdk-dev] [PATCH] igb/ixgbe: fix index overflow when resetting 4096 queue rings

2013-11-15 Thread Ivan Boule
On 11/15/2013 02:19 PM, Thomas Monjalon wrote: > Rings are resetted with a loop because memset cannot be used without > issuing a warning about volatile casting. > The index of the loop was a 16-bit variable which is is sufficient for > ring entries number but not for the byte size of the whole rin

[dpdk-dev] [PATCH] igb/ixgbe: fix index overflow when resetting 4096 queue rings

2013-11-15 Thread Thomas Monjalon
Rings are resetted with a loop because memset cannot be used without issuing a warning about volatile casting. The index of the loop was a 16-bit variable which is is sufficient for ring entries number but not for the byte size of the whole ring. The overflow happens when rings are configured for 4