net: hns3: refactor the coalesce related struct
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 9 Mar 2018 02:37:03 +0000 (10:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2018 16:33:14 +0000 (11:33 -0500)
commit9bc727a9d5e5c47015db118db407cbada1081a1e
tree5d6190cc9950c5e728791c2e8ba685882fd02b33
parentdd38c72604dc8c49e6057010675651f3567dd3bf
net: hns3: refactor the coalesce related struct

This patch refoctors the coalesce related struct by introducing
the hns3_enet_coalesce struct, in order to fix the coalesce
configuation lost problem when changing the channel number.

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/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c