net/mlx5: change return value of Rx completion poll
authorYongseok Koh <yskoh@mellanox.com>
Tue, 26 Jun 2018 12:39:21 +0000 (05:39 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:58 +0000 (01:35 +0200)
commit2e633f1f6d3d94c55b4381628c17e5ab910cba7e
treeb300edf60ae0591cd6be92c221700e8654b9e963
parente10245a13b2e340f48ce80484f19bcbc13e9ebe6
net/mlx5: change return value of Rx completion poll

mlx5_rx_poll_len() returns Rx hash result extracted from either mini CQE or
regular CQE. As mini CQE may not have the hash result if configured
otherwise, it shouldn't assume the first DWORD of mini CQE is always hash
result. mlx5_rx_poll_len() is changed to return pointer to the mini CQE if
compressed.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_rxtx.c