net/mlx5: fix buffer address posting in SSE Rx
authorYongseok Koh <yskoh@mellanox.com>
Tue, 1 Aug 2017 16:35:20 +0000 (09:35 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 3 Aug 2017 21:22:25 +0000 (23:22 +0200)
commit545b884b1da384106327cef1a2124ab986831076
tree5bdadce02069f92d4359db769f06347a324da7ce
parent1cba20c6100fd12754f81576759f6841bfc933d6
net/mlx5: fix buffer address posting in SSE Rx

The data_off field of newly allocated mbufs is stale data. This shouldn't
be used in calculating Rx address for device when posting free buffers.
RTE_PKTMBUF_HEADROOM should be used instead and data_off of a mbuf will be
reset on packet reception anyway.

Fixes: 6cb559d67b83 ("net/mlx5: add vectorized Rx/Tx burst for x86")

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_rxtx_vec_sse.c