]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf7ad9c92e583b508f8b2a0372c899e5fcc14d91
treea43320c20a0c4b57024d9d834594e0f307a6eceb
parent5a23f62186006446ec27f1c2c270907cafbb2b26
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