net: hns3: fix for RSS configuration loss problem during reset
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 9 Mar 2018 02:36:58 +0000 (10:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2018 16:33:13 +0000 (11:33 -0500)
commit268f5dfade2a873cef516ce94ebfc7129af245da
tree0252b650f35c29cdd5dc5a435e77c4e30c3efee5
parent6f2af4295553348953e91dfc0bd77749de961804
net: hns3: fix for RSS configuration loss problem during reset

RSS configuration will be set to default value by hclge_rss_init_hw
during reset, which causes the RSS configuration loss problem.

This patch fixes it by setting the default value in
hclge_rss_init_cfg function, which will not be called in the reset
process.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h