From c9c2a965ab83ca224663abe5ce38f774a081e83e Mon Sep 17 00:00:00 2001 From: =?utf8?q?N=C3=A9lio=20Laranjeiro?= Date: Tue, 28 Feb 2017 10:20:01 +0100 Subject: [PATCH] net/mlx5: fix flow mark action handling Mark value is always reported even when not requested or invalid. Fixes: ea3bc3b1df94 ("net/mlx5: support mark flow action") Cc: stable@dpdk.org Reported-by: Mark Bloch Signed-off-by: Nelio Laranjeiro Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 25059c9ddf..b0551cccf6 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -1507,7 +1507,7 @@ mlx5_rx_burst(void *dpdk_rxq, struct rte_mbuf **pkts, uint16_t pkts_n) } if (rxq->mark && ((cqe->sop_drop_qpn != - htonl(MLX5_FLOW_MARK_INVALID)) || + htonl(MLX5_FLOW_MARK_INVALID)) && (cqe->sop_drop_qpn != htonl(MLX5_FLOW_MARK_DEFAULT)))) { pkt->hash.fdir.hi = -- 2.20.1