net: hns: Add self-adaptive interrupt coalesce support in hns driver
authorLin Yun Sheng <linyunsheng@huawei.com>
Wed, 2 Aug 2017 09:57:37 +0000 (17:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 16:21:14 +0000 (09:21 -0700)
commitb8c17f7088310e7ee34ca61929f737045adfd449
tree6f032b03020e149255963affbe2a6549fbde30e3
parente9e6c2329a518d43a4734b26349bb19d8dfd7e6b
net: hns: Add self-adaptive interrupt coalesce support in hns driver

When deal with low and high throughput, it is hard to achiece both
high performance and low latency. In order to achiece that, this patch
calculates the rx rate, and adjust the interrupt coalesce parameter
accordingly.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Tested-by: Weiwei Deng <dengweiwei@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hnae.c
drivers/net/ethernet/hisilicon/hns/hnae.h
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c
drivers/net/ethernet/hisilicon/hns/hns_enet.c
drivers/net/ethernet/hisilicon/hns/hns_enet.h
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c