net: hns3: refactor hns3_nic_reuse_page()
authorHao Chen <chenhao288@hisilicon.com>
Mon, 29 Nov 2021 14:00:19 +0000 (22:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2021 14:26:17 +0000 (14:26 +0000)
commite74a726da2c4dcedb8b0631f423d0044c7901a20
tree99a129496125ea646cfe24d861689b13faea8492
parented0e658c51aadb64b871cfa3de7d26599f171cdb
net: hns3: refactor hns3_nic_reuse_page()

Split rx copybreak handle into a separate function from function
hns3_nic_reuse_page() to improve code simplicity.

Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c