]> git.droids-corp.org - dpdk.git/commitdiff
net/hns3: fix return value for unsupported tuple
authorHuisong Li <lihuisong@huawei.com>
Wed, 1 Jun 2022 03:52:47 +0000 (11:52 +0800)
committerAndrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Thu, 9 Jun 2022 08:57:46 +0000 (10:57 +0200)
Driver should return false for unsupported tuple.

Fixes: 18a4b4c3fa80 ("net/hns3: add default to switch when parsing fd tuple")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_fdir.c

index 2a7978ac078a92c04050ab4ad044745d0c3aba06..a0d6598e5741d890763cb3835ad9aa51c0b2b4d8 100644 (file)
@@ -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;
 }