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)
commit4a43caf5b74f80749f4e76edd151244ce59f0a47
tree904a12ae5281e2f62ce4c29986e7a1133696ce15
parentd5970dc73f1c12a07f89b427799ca8b0b6c30b97
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