net: hns3: keep flow director state unchanged when reset
authorJian Shen <shenjian15@huawei.com>
Wed, 30 Jan 2019 20:55:52 +0000 (04:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jan 2019 22:50:04 +0000 (14:50 -0800)
commit9abeb7d8cf8719bf221bf371f97fbf0971657be3
treeeb74047e9c9a940b3ce05ec6634363ed8d8c4ef4
parentc59a85c07e77a7669e5b4d2ffa878b6894ec3953
net: hns3: keep flow director state unchanged when reset

In orginal codes, driver always enables flow director when
intializing. When user disable flow director with command
ethtool -K, the flow director will be enabled again after
resetting.

This patch fixes it by only enabling it when first initialzing.

Fixes: 6871af29b3ab ("net: hns3: Add reset handle for flow director")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h