]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: do reinitialization while mqprio configuration changed
authorYunsheng Lin <linyunsheng@huawei.com>
Sat, 26 Jan 2019 16:49:16 +0000 (00:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 17:33:30 +0000 (09:33 -0800)
commit8d72000241d2994d5b96fa95ddd8384f20e99c06
tree23999406fb765a0df0ee392e7bc99e1a7c7a3797
parent3e715dab22b3b8cab6670fda461dc3b85e630c8b
net: hns3: do reinitialization while mqprio configuration changed

When user changes the mqprio configuration, enet need to be
uninited and inited besides down'ed and up'ed, because the queue
num may change when the TC num changes.

Also, it is more suitable to do the down/unint/init/up operation
in hclge module using hclge_notify_client, because this config
change may affect PF and its VF.

Signed-off-by: Yunsheng Lin <linyunsheng@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/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c