[dpdk-dev] [PATCH] net/mlx5: fix queue wrap-around of multi-packet send

Ferruh Yigit ferruh.yigit at intel.com
Fri Jan 20 19:43:15 CET 2017


On 1/20/2017 4:56 PM, Adrien Mazarguil wrote:
> On Tue, Jan 17, 2017 at 04:51:55PM -0800, Yongseok Koh wrote:
>> When the WQ is wrapped around, it wrongly checks the condition when
>> resetting the pointer. It should be compared against the end of the queue,
>> not the beginning of the queue. And this isn't even needed when the length
>> of the copying data crosses the boundary.
>>
>> Fixes: e5291c280c08 ("net/mlx5: use work queue buffer as a raw buffer")
>>
>> CC: stable at dpdk.org
>> Signed-off-by: Yongseok Koh <yskoh at mellanox.com>
>> ---
>>  drivers/net/mlx5/mlx5_rxtx.c | 10 ++++++----
>>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> Thanks for addressing this issue.
> 
> Acked-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>

Fixes: fdcb0f53053b ("net/mlx5: use work queue buffer as a raw buffer")
Applied to dpdk-next-net/master, thanks.



More information about the dev mailing list