]> 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)
commit15e335e38cd157f108d1f1d07a4e30b8218e153b
treeebe9e85ef1663a5795c351e57b79bcb42bcfb4eb
parent5034e622b196a3ae8bbd4985ecc83964256fb3c2
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: 3fdd36666b6d ("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