]> 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)
commit5a23f62186006446ec27f1c2c270907cafbb2b26
tree3acc5548000f5d3859c994096cb31fa133e68cdd
parent17dcbea4c82f776bd1f080bcc01a3322b21ebbe7
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