net/mlx5: add prefetching Rx completion queue
authorYongseok Koh <yskoh@mellanox.com>
Tue, 17 Jan 2017 02:09:40 +0000 (18:09 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Jan 2017 21:18:26 +0000 (22:18 +0100)
commitd2e842d01e861bf489be4d34ab63ca17d50ae4e5
treea7eb5df3cfd6ade9b7d2e4939d91d44423a7839b
parent65a35ca820f4ed4d55d22a32bf6cadc9d12c95af
net/mlx5: add prefetching Rx completion queue

On receiving a compressed session of Rx completion, prefetch every entries
to be invalidated. Also, invalidate consumed completions per every 8
mini-completions, not to wait until the last entry is consumed. This helps
to reduce jitter in rx_burst.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_rxtx.c