]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: disable firmware compatible features when uninstall PF
authorGuangbin Huang <huangguangbin2@huawei.com>
Wed, 29 Sep 2021 09:35:56 +0000 (17:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Sep 2021 10:03:54 +0000 (11:03 +0100)
commitbbfe33550e56e0b8f5eced4a055a383f7d096d64
treeff458b5a6867ad002700c4c230f8dcc09b8d2aa5
parent2817142eb65d388fa324b1a9b1f8959aa8108ec2
net: hns3: disable firmware compatible features when uninstall PF

Currently, the firmware compatible features are enabled in PF driver
initialization process, but they are not disabled in PF driver
deinitialization process and firmware keeps these features in enabled
status.

In this case, if load an old PF driver (for example, in VM) which not
support the firmware compatible features, firmware will still send mailbox
message to PF when link status changed and PF will print
"un-supported mailbox message, code = 201".

To fix this problem, disable these firmware compatible features in PF
driver deinitialization process.

Fixes: 4f317b456594 ("net: hns3: add link change event report")
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c