]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refactor the get/put_vector function
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 9 Mar 2018 02:37:01 +0000 (10:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2018 16:33:14 +0000 (11:33 -0500)
commit8f39791be5459af79c31b6e6738cf1c88d34cb28
tree3acc5548000f5d3859c994096cb31fa133e68cdd
parenteec3efb0dd3807b71b952f6d63ac63ea0508f48d
net: hns3: refactor the get/put_vector function

There is a get_vector function, which allocate the vectors
for a client, but there is not a put_vector to free the
vector.

This patch introduces the put_vector function in order to
fix the coalesce configuration lost problem during reset
process.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@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_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c