]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refactor GL update function
authorFuyun Liang <liangfuyun1@huawei.com>
Fri, 12 Jan 2018 08:23:12 +0000 (16:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Jan 2018 15:12:32 +0000 (10:12 -0500)
commitdf919b393c60c100f197946b5c3463bda04fa696
tree6e839dd84a4d0ed9fb006334c34c9ae810615aeb
parent26db612e18c3e0d00cba06ca56d5734562c28c89
net: hns3: refactor GL update function

The GL update function uses the max GL value between tx_int_gl and
rx_int_gl to set both new tx_int_gl and new rx_int_gl. Therefore, User
can not enable TX GL self-adaptive or RX GL self-adaptive individually.

This patch refactors the code to update the TX GL and the RX GL
separately, making user can enable TX GL self-adaptive or RX GL
self-adaptive individually.

Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
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