[PATCH 08/12] net/hns3: fix return value for unsupported tuple
Min Hu (Connor)
humin29 at huawei.com
Thu May 19 14:29:13 CEST 2022
From: Huisong Li <lihuisong at huawei.com>
Driver should return false for unsupported tuple. This patch fixes it.
Fixes: 18a4b4c3fa80 ("net/hns3: add default to switch when parsing fd tuple")
Cc: stable at dpdk.org
Signed-off-by: Huisong Li <lihuisong at huawei.com>
Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
---
drivers/net/hns3/hns3_fdir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/hns3/hns3_fdir.c b/drivers/net/hns3/hns3_fdir.c
index 2a7978ac07..a0d6598e57 100644
--- a/drivers/net/hns3/hns3_fdir.c
+++ b/drivers/net/hns3/hns3_fdir.c
@@ -631,7 +631,7 @@ static bool hns3_fd_convert_tuple(struct hns3_hw *hw,
break;
default:
hns3_warn(hw, "not support tuple of (%u)", tuple);
- break;
+ return false;
}
return true;
}
--
2.33.0
More information about the dev
mailing list