linux/drivers/net/ethernet/airoha/Kconfig
Lorenzo Bianconi b81e0f2b58 net: airoha: Add FLOW_CLS_STATS callback support
Introduce per-flow stats accounting to the flowtable hw offload in
the airoha_eth driver. Flow stats are split in the PPE and NPU modules:
- PPE: accounts for high 32bit of per-flow stats
- NPU: accounts for low 32bit of per-flow stats

FLOW_CLS_STATS can be enabled or disabled at compile time.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250516-airoha-en7581-flowstats-v2-2-06d5fbf28984@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-05-20 20:00:51 -07:00

34 lines
818 B
Text

# SPDX-License-Identifier: GPL-2.0-only
config NET_VENDOR_AIROHA
bool "Airoha devices"
depends on ARCH_AIROHA || COMPILE_TEST
help
If you have a Airoha SoC with ethernet, say Y.
if NET_VENDOR_AIROHA
config NET_AIROHA_NPU
tristate "Airoha NPU support"
select WANT_DEV_COREDUMP
select REGMAP_MMIO
help
This driver supports Airoha Network Processor (NPU) available
on the Airoha Soc family.
config NET_AIROHA
tristate "Airoha SoC Gigabit Ethernet support"
depends on NET_DSA || !NET_DSA
select NET_AIROHA_NPU
select PAGE_POOL
help
This driver supports the gigabit ethernet MACs in the
Airoha SoC family.
config NET_AIROHA_FLOW_STATS
default y
bool "Airoha flow stats"
depends on NET_AIROHA && NET_AIROHA_NPU
help
Enable Aiorha flowtable statistic counters.
endif #NET_VENDOR_AIROHA