net/mlx5: fix error statistics in SSE Rx
authorYongseok Koh <yskoh@mellanox.com>
Wed, 2 Aug 2017 17:25:54 +0000 (10:25 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 3 Aug 2017 21:27:06 +0000 (23:27 +0200)
commit9807f113354419a799a8f20fb8e187959feb5f05
treebf84f984d8bdc9055659ef69aeca90380178e190
parent58db3b6fe92234bed9e2306b66b5daf4f591fb13
net/mlx5: fix error statistics in SSE Rx

If there's a Rx completion with error (e.g, MTU mismatch), it is handled
later out of main burst loop as a slow path for performance reason.
Statistics should be corrected by subtracting counters of errored packets.
Also, the last entry of mlx5_ptype_table[] must be RTE_PTYPE_ALL_MASK to
mark error in completion.

Fixes: ea16068c0064 ("net/mlx5: fix L4 packet type support")
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.c
drivers/net/mlx5/mlx5_rxtx_vec_sse.c