]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: update coalesce param per second
authorPeng Li <lipeng321@huawei.com>
Tue, 18 Dec 2018 11:37:54 +0000 (19:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 20:01:01 +0000 (12:01 -0800)
commit97681d0f7641621dc081395e25fb3b553fdcbf3a
treea4423748b8fe167bf843ebfc1b017b0a1ea1184f
parentc6f19fc0dea15ea8d34f9fe52f2c51d9b05b29c6
net: hns3: update coalesce param per second

coalesce param updates every 100 napi times, it may update a little
late if ping test after a high rate flow, may over napi poll is called
100 times as ping test sends packets every second.

This patch updates coalesce param every second, instead with every
100 napi times. It can not update the param 100% in time, but the
lag time is very short.

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
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h