]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6defd0689bd6b314efbc5a9ee8797fbe809ddf88
tree776c520b3a0fcbc761888335bc82ce430a55d9fe
parent5eeac66be02d5159769f818d634f24dd6d72ff1e
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