]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add failure logs in hclge_set_vport_mtu
authorJie Wang <wangjie125@huawei.com>
Tue, 19 Apr 2022 03:27:04 +0000 (11:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2022 09:45:50 +0000 (10:45 +0100)
commit0e6f7549a8c18c23674d6a09e0b76b2cb49ddf2e
tree8fec1e700f4e8cd45756f6666204ee26f3701894
parentf42a1ee738512f68f3f4e2b1f382f8b5ea1ba69a
net: hns3: add failure logs in hclge_set_vport_mtu

Currently, There is a low probability that pf mtu configuration fails, but
the information in logs is insufficient for problem locating when the VF
mtu value is illegally modified.

So record the vf index and vf mtu value at the failure scenario.

Signed-off-by: Jie Wang <wangjie125@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_main.c