]> git.itanic.dy.fi Git - linux-stable/commit
net: hns3: add option to turn off page pool feature
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 13 Sep 2021 13:08:20 +0000 (21:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Sep 2021 13:25:37 +0000 (14:25 +0100)
commitf7ec554b73c5239a96afb9a9c3eb18cb11f539b7
tree3d8f2d2c1c97b18c8f519425dfec892c2dab27bd
parent111b64e35ea03d58c882832744f571a88bb2e2e2
net: hns3: add option to turn off page pool feature

When page pool is added to the hns3 driver, it is always
enabled unconditionally, which means spilt page handling
in the hns3 driver is dead code.

As there is a requirement to test the performance between
spilt page handling in driver and page pool, so add a module
param to support disabling the page pool.

When the page pool is proved to perform better in most case,
the spilt page handling in driver can be removed.

Fixes: 93188e9642c3 ("net: hns3: support skb's frag page recycling based on page pool")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.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