aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2017-09-27 09:45:24 +0800
committerDavid S. Miller <davem@davemloft.net>2017-09-28 10:35:11 -0700
commitacf61ecd44feae2a78c13d0d7cb8e386741c5cf0 (patch)
tree48d6c201ac9e18fa6fe94e291efe7fa40c66150d /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c
parentnet: hns3: Support for dynamically assigning tx buffer to TC (diff)
downloadlinux-dev-acf61ecd44feae2a78c13d0d7cb8e386741c5cf0.tar.xz
linux-dev-acf61ecd44feae2a78c13d0d7cb8e386741c5cf0.zip
net: hns3: Add support for dynamically buffer reallocation
Current buffer allocation can only happen at init, when doing buffer reallocation after init, care must be taken care of memory which priv_buf points to. This patch fixes it by using a dynamic allocated temporary memory. Because we only do buffer reallocation at init or when setting up the DCB parameter, and priv_buf is only used at buffer allocation process, so it is ok to use a dynamic allocated temporary memory. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c')
0 files changed, 0 insertions, 0 deletions