net: hns3: fix for coal configuation lost when setting the channel
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 9 Mar 2018 02:37:04 +0000 (10:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2018 16:33:14 +0000 (11:33 -0500)
commit7a242b232a6435a6f7ca3ce71efc56a7b3c451ba
tree776c520b3a0fcbc761888335bc82ce430a55d9fe
parent9bc727a9d5e5c47015db118db407cbada1081a1e
net: hns3: fix for coal configuation lost when setting the channel

This patch fixes the coalesce configuation lost problem when
setting the channel number by restoring all vectors's coalesce
configuation to vector 0's, because all vectors belonging to
the same netdev have the same coalesce configuation for now.

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