realtek: Add driver support for TC offloading
authorBirger Koblitz <git@birger-koblitz.de>
Tue, 7 Sep 2021 13:30:29 +0000 (15:30 +0200)
committerJohn Crispin <john@phrozen.org>
Sat, 9 Oct 2021 06:25:05 +0000 (08:25 +0200)
commit54805fc91186228eec0ce14f7c5a6b4149b0a244
treee95ce211176a8492785ad6353c2fbb26c26014fb
parenta6678accbd3da00a002158618125af155cc27b37
realtek: Add driver support for TC offloading

This adds support for offloading TC flower by using the Packet Inspection Engine
of the RTL-SoCs. Basic infrastructure support is provide with callbacks to the
tc subsystem and support for HW packet counters.

Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/Makefile
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/common.c
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/dsa.c
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/rtl838x.h
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/rtl83xx.h
target/linux/realtek/files-5.10/drivers/net/dsa/rtl83xx/tc.c [new file with mode: 0644]
target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.c
target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.h