net: fec: allow to build without PAGE_POOL_STATS
authorLucas Stach <l.stach@pengutronix.de>
Fri, 16 Jun 2023 19:18:32 +0000 (21:18 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Jun 2023 19:11:59 +0000 (12:11 -0700)
commit857922b16bb893d26d5ecd83acf9f20cb28eaea2
tree7b80ddc1ecfb312b70008325fb32b69059da33ee
parentb6d972f6898308fbe7e693bf8d44ebfdb1cd2dc4
net: fec: allow to build without PAGE_POOL_STATS

Commit 6970ef27ff7f ("net: fec: add xdp and page pool statistics") selected
CONFIG_PAGE_POOL_STATS from the FEC driver symbol, making it impossible
to build without the page pool statistics when this driver is enabled. The
help text of those statistics mentions increased overhead. Allow the user
to choose between usefulness of the statistics and the added overhead.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20230616191832.2944130-1-l.stach@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/Kconfig
drivers/net/ethernet/freescale/fec_main.c