]> 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)
commitf979ae69860305ff20ce2a39191b7ef0d4e940ec
tree3d8f2d2c1c97b18c8f519425dfec892c2dab27bd
parent88798e993752e8c657d56093f082bab19d8abe2c
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: 990d47893131 ("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