summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
diff options
context:
space:
mode:
authorFuyun Liang2018-03-21 08:49:20 +0100
committerDavid S. Miller2018-03-22 18:12:01 +0100
commitdd72140ca9fd44c5e3ea3cb6b485f40e6751f5e9 (patch)
treefe1ea43da98a70e32594954e67bd12cea6f7f5ad /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
parentdevlink: Remove top_hierarchy arg to devlink_resource_register (diff)
downloadkernel-qcow2-linux-dd72140ca9fd44c5e3ea3cb6b485f40e6751f5e9.tar.gz
kernel-qcow2-linux-dd72140ca9fd44c5e3ea3cb6b485f40e6751f5e9.tar.xz
kernel-qcow2-linux-dd72140ca9fd44c5e3ea3cb6b485f40e6751f5e9.zip
net: hns3: reallocate tx/rx buffer after changing mtu
When changing the mtu, the max frame size also will be changed. The tx buffer size and the rx buffer size to be allocated are determined by max frame size. So when max frame size is changed, the tx buffer and rx buffer need to be reallocated. When the tc_num is changed, the tx buffer and rx buffer need to be reallocated too. So calling set_mtu and buffer_alloc separately is better. Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h')
0 files changed, 0 insertions, 0 deletions