]> 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)
commit8645885a7260bf05d4dbca482f1b19f56c7c415c
tree59bea10f875a00e7956ad2ea69968444aac0437c
parent6c8df3e3e787be1d3dc18db36050d23006e03775
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