From 35768b682bc30151315f919a9a7b62b857bf3c7c Mon Sep 17 00:00:00 2001 From: Huisong Li Date: Wed, 1 Jun 2022 11:52:47 +0800 Subject: [PATCH] net/hns3: fix return value for unsupported tuple [ upstream commit 66689dc09f0cf92af03abcba58b7474fa8ac847e ] Driver should return false for unsupported tuple. Fixes: 18a4b4c3fa80 ("net/hns3: add default to switch when parsing fd tuple") Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- 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 693d9c731ad..4e1667d2f8d 100644 --- a/drivers/net/hns3/hns3_fdir.c +++ b/drivers/net/hns3/hns3_fdir.c @@ -618,7 +618,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; }