]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: don't rollback when destroy mqprio fail
authorJian Shen <shenjian15@huawei.com>
Wed, 29 Sep 2021 09:35:51 +0000 (17:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Sep 2021 10:03:54 +0000 (11:03 +0100)
commitbf0bec39d2e6b9ebcf2fb63bb0987cddff35f518
treeebe9e85ef1663a5795c351e57b79bcb42bcfb4eb
parent85081b33e54a8d944b180d7027b1f7c8b3c9a92f
net: hns3: don't rollback when destroy mqprio fail

For destroy mqprio is irreversible in stack, so it's unnecessary
to rollback the tc configuration when destroy mqprio failed.
Otherwise, it may cause the configuration being inconsistent
between driver and netstack.

As the failure is usually caused by reset, and the driver will
restore the configuration after reset, so it can keep the
configuration being consistent between driver and hardware.

Fixes: e1fb39c0e40c ("net: hns3: add support for tc mqprio offload")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c