]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix inconsistent vf id print
authorJian Shen <shenjian15@huawei.com>
Wed, 15 Sep 2021 13:52:07 +0000 (21:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Sep 2021 12:28:39 +0000 (13:28 +0100)
commit32405ae1ada853595d73e760d60ccfd5e0ed6717
treeb0259ed35ccfecece41e8e5a3d7732199ca2d8d8
parentef1893d4de8d9cdfce62439ae928661d2a9e1a99
net: hns3: fix inconsistent vf id print

The vf id from ethtool is added 1 before configured to driver.
So it's necessary to minus 1 when printing it, in order to
keep consistent with user's configuration.

Fixes: 20dd70e1a57b ("net: hns3: Add support for rule add/delete for flow director")
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_main.c