net: airoha: Add L2 hw acceleration support
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 9 Apr 2025 09:47:15 +0000 (11:47 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 12 Apr 2025 03:15:36 +0000 (20:15 -0700)
commitcd53f622611f9a6dd83b858c85448dd3568b67ec
tree766cdd0e2d4dedfc090c02ae457f4fff1f5d866d
parentb4916f67902e2ae1dc8e37dfa45e8894ad2f8921
net: airoha: Add L2 hw acceleration support

Similar to mtk driver, introduce the capability to offload L2 traffic
defining flower rules in the PSE/PPE engine available on EN7581 SoC.
Since the hw always reports L2/L3/L4 flower rules, link all L2 rules
sharing the same L2 info (with different L3/L4 info) in the L2 subflows
list of a given L2 PPE entry.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Link: https://patch.msgid.link/20250409-airoha-flowtable-l2b-v2-2-4a1e3935ea92@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_eth.c
drivers/net/ethernet/airoha/airoha_eth.h
drivers/net/ethernet/airoha/airoha_ppe.c