net/hns3: fix rollback on RSS hash update
authorHuisong Li <lihuisong@huawei.com>
Thu, 5 May 2022 12:27:06 +0000 (20:27 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Thu, 12 May 2022 08:28:54 +0000 (10:28 +0200)
commit07f64b5f576a779c8c3df4ba45ad70c306dcb562
treeffa4b686f96d1ea620ae125b12dbfbe5ace4545a
parent75ccc3f3d7fa06901d5b768448be4dc9f31f550a
net/hns3: fix rollback on RSS hash update

The RSS tuple isn't restored when RSS key length is invalid or setting
algo key failed. This patch fixes it.

Fixes: c37ca66f2b27 ("net/hns3: support RSS")
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_rss.c