From 351b54f5cfdd61421af76637b61ff0947c3cda78 Mon Sep 17 00:00:00 2001 From: Bing Zhao Date: Fri, 17 Apr 2020 15:23:30 +0800 Subject: [PATCH] net/mlx5: fix Rx queue flags on destroying flow After inserting an offload flow, the software flag information will be updated based on the flow. When receiving a packet on this queue, the hardware packet type bits and the software flag will be used together to get the inner packet and tunnel header type (if any) from the global packet type table. When destroying a flow, the corresponding Rx queue flag needs to be updated. All flags should be cleared when closing a device because all control flows and application flows are invalid anymore. Such behavior is missed when implementing the non-cached mode. Fixes: 8db7e3b69822 ("net/mlx5: change operations for non-cached flows") Signed-off-by: Bing Zhao Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index cba1f23e81..3d256a2f60 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -4687,6 +4687,7 @@ void mlx5_flow_stop_default(struct rte_eth_dev *dev) { flow_mreg_del_default_copy_action(dev); + flow_rxq_flags_clear(dev); } /** -- 2.20.1