net: hns3: fix for coalesce configuration lost during reset
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 9 Mar 2018 02:37:02 +0000 (10:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2018 16:33:14 +0000 (11:33 -0500)
commitdd38c72604dc8c49e6057010675651f3567dd3bf
treea43320c20a0c4b57024d9d834594e0f307a6eceb
parent0d3e6631de9a56a56e06435f3a2c6196014a059d
net: hns3: fix for coalesce configuration lost during reset

Coalesce configuration will be set to default value by
hns3_nic_init_vector_data during reset, which causes the
coalesce configuration loss problem.

This patch fixes it by setting the default value in
hns3_nic_alloc_vector_data, which will not be called in the
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/hns3_enet.c