net/hns3: fix RSS hardware configuration restore
authorHao Chen <chenhao164@huawei.com>
Fri, 22 Nov 2019 12:06:19 +0000 (20:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commitccf93f56e0ecc2e37991f2883420711b7f38340d
tree4ec38ed5f40dfd4cade104795c8d02f9f56a136c
parent9e6b36c34ce928d13a5182e8e76580058366bf7c
net/hns3: fix RSS hardware configuration restore

This patch fixes the bug that hardware configuration called
tc_size doesn't restore to the initial value when starting
the app, configuring PFC and then restarting the app,
because of the tc_mode didn't initial when rss is disabled.

Fixes: c37ca66f2b27 ("net/hns3: support RSS")
Cc: stable@dpdk.org
Signed-off-by: Hao Chen <chenhao164@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_rss.c