]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit7445565cd064679421e3cf4d440589ee723f6c08
treea4423748b8fe167bf843ebfc1b017b0a1ea1184f
parentae6017a71115ebc4e5c1a3f0f451319ab3f5c447
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