]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2018 17:37:42 +0000 (10:37 -0700)
commitb965cfaa0441ce604cf4a4c7f83e2f0cd7abd70d
tree0e15756f8dfc2de41b4839d04f2803b80f0bb3d5
parent3bca9bc23a1e59397b4d13b89a2b7057197c974d
net: hns3: Fix loss of coal configuration while doing reset

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: 6beb7a136b6b ("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>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h