net: hns3: fix RSS config lost after VF reset.
authorGuojia Liao <liaoguojia@huawei.com>
Sat, 28 Mar 2020 07:09:57 +0000 (15:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 17:57:53 +0000 (10:57 -0700)
commit944de4847af1544856486afa6a99c946c28eda57
treed895883a20bebf9f1168629bef2b973aff510b54
parent74ef402e134b5ebe4bcfbcdd55d2e7278a724620
net: hns3: fix RSS config lost after VF reset.

Currently, VF's RSS configuration would be set to default
after VF reset, the the user's one will loss.

To fix it, this patch separates hclgevf_rss_init_hw() into
two parts, one sets up the default RSS configuration and
just be called when driver loading, one configures the hardware
and be called by driver loading or reset.

Fixes: d97b30721301 ("net: hns3: Add RSS tuples support for VF")
Signed-off-by: Guojia Liao <liaoguojia@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c