]> git.baikalelectronics.ru Git - kernel.git/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)
commite514ac735caf53fe7f4b2ca77a512a6bd7ea1318
tree3d8f2d2c1c97b18c8f519425dfec892c2dab27bd
parent2114698534957e6f06ecfc013864023503eca94d
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: 33cd93e5cddf ("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