]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add support to query tx spare buffer size for pf
authorHuazhong Tan <tanhuazhong@huawei.com>
Wed, 16 Jun 2021 06:36:14 +0000 (14:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 07:36:06 +0000 (00:36 -0700)
commit4ee707d90db009c1a7faf997c168b0eeb2737c92
tree59bea10f875a00e7956ad2ea69968444aac0437c
parent71c45c7df1ed10b7cd521147146054965a3c7f31
net: hns3: add support to query tx spare buffer size for pf

Add support to query tx spare buffer size from configuration
file, and use this info to do spare buffer initialization when
the module parameter 'tx_spare_buf_size' is not specified.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h