]> 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)
commitf7f77c15cdd21b68721e1e52b237f95d71431855
treeb0259ed35ccfecece41e8e5a3d7732199ca2d8d8
parent7d34247ba1ebce550435867bde47c9fdab98fad9
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: 2f039f59e103 ("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