]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refactor hns3_get_new_int_gl function
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 7 Jun 2019 02:03:06 +0000 (10:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Jun 2019 20:20:59 +0000 (13:20 -0700)
commitd4127696af76f0990772a0f159eb5ba625475dc8
tree904a12ae5281e2f62ce4c29986e7a1133696ce15
parent8efffe7537ee72d3b391e8e1c68599952a0dc51b
net: hns3: refactor hns3_get_new_int_gl function

This patch adds a new hns3_get_new_flow_lvl function to calculate
the packet flow level, which is used to decide the interrupt
coalescence parameter, in order to make the flow level calculation
code more readable and make the future calculation ajdustment easier.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c