mirror_ubuntu-kernels/drivers/net/ethernet/mediatek
Felix Fietkau 33fc42de33 net: ethernet: mtk_eth_soc: support creating mac address based offload entries
This will be used to implement a limited form of bridge offloading.
Since the hardware does not support flow table entries with just source
and destination MAC address, the driver has to emulate it.

The hardware automatically creates entries entries for incoming flows, even
when they are bridged instead of routed, and reports when packets for these
flows have reached the minimum PPS rate for offloading.

After this happens, we look up the L2 flow offload entry based on the MAC
header and fill in the output routing information in the flow table.
The dynamically created per-flow entries are automatically removed when
either the hardware flowtable entry expires, is replaced, or if the offload
rule they belong to is removed

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-04-06 14:08:51 +01:00
..
Kconfig net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00
Makefile net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00
mtk_eth_path.c net: mtk_eth: simplify the mediatek code return expression 2020-12-14 17:51:26 -08:00
mtk_eth_soc.c net: ethernet: mtk_eth_soc: rework hardware flow table management 2022-04-06 14:08:50 +01:00
mtk_eth_soc.h net: ethernet: mtk_eth_soc: allocate struct mtk_ppe separately 2022-04-06 14:08:50 +01:00
mtk_ppe_debugfs.c net: ethernet: mtk_eth_soc: remove bridge flow offload type entry support 2022-04-06 14:08:50 +01:00
mtk_ppe_offload.c net: ethernet: mtk_eth_soc: support creating mac address based offload entries 2022-04-06 14:08:51 +01:00
mtk_ppe_regs.h net: ethernet: mtk_eth_soc: add support for initializing the PPE 2021-03-24 12:48:39 -07:00
mtk_ppe.c net: ethernet: mtk_eth_soc: support creating mac address based offload entries 2022-04-06 14:08:51 +01:00
mtk_ppe.h net: ethernet: mtk_eth_soc: support creating mac address based offload entries 2022-04-06 14:08:51 +01:00
mtk_sgmii.c net: mediatek: remove unneeded semicolon 2019-10-28 16:36:24 -07:00
mtk_star_emac.c net: ethernet: mtk_star_emac: fix unused variable 2022-01-27 13:47:34 +00:00
mtk_wed_debugfs.c net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00
mtk_wed_ops.c net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00
mtk_wed_regs.h net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00
mtk_wed.c net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED) 2022-04-06 14:08:49 +01:00
mtk_wed.h net: ethernet: mtk_eth_soc: implement flow offloading to WED devices 2022-04-06 14:08:49 +01:00