net: hns3: Fix loss of coal configuration while doing reset
authorHuazhong Tan <tanhuazhong@huawei.com>
Wed, 26 Sep 2018 18:28:40 +0000 (19:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:19:20 +0000 (08:19 +0100)
commit7cbac9d598a795a361c7df913c56597a6c58e5d8
treeffb9b71ac66e29c04d17e771546399b6b877baa7
parentaf98283da9e92d672d4a5f0208f40aa55d95c20c
net: hns3: Fix loss of coal configuration while doing reset

[ Upstream commit e4fd75022c24eb28cc1034e97e60cecc24f325f3 ]

The user's coal configuration will be lost after reset, so the tx_coal
and rx_coal fields are added to the struct hns_nic_priv to save the coal
configuration and used to restore the user's configuration after the reset
is complete.

Fixes: bb6b94a896d4 ("net: hns3: Add reset interface implementation in client")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h