]> 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)
commit09959470272fc1dadd2c15655e8bf39b822cbac6
tree776c520b3a0fcbc761888335bc82ce430a55d9fe
parentc62ab190cb9722d98a19979bd8b37ce6074dbc1a
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