]> 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)
commit449c53f1f1962d2d60068afd6314cb3cbefb564a
tree904a12ae5281e2f62ce4c29986e7a1133696ce15
parent4583ca2915c501a860d4886986f4a5b11c5c76c9
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