net/mlx5: fix endianness in Tx completion queue
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Thu, 17 Nov 2016 09:49:55 +0000 (10:49 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:24:51 +0000 (19:24 +0100)
commite929f2a2cd1f45e865dc6a52b44b17f5630238d5
tree10754990e07cb03d63797150ce561538f2ad0a95
parentfe5fe3820e504380f4abd15f839f63dd6e5c508f
net/mlx5: fix endianness in Tx completion queue

Completion queue entry data uses network endian, to access them we should
use ntoh*().

Fixes: c305090bbaf8 ("net/mlx5: replace countdown with threshold for Tx completions")

Reported-by: Liming Sun <lsun@mellanox.com>
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_rxtx.c