[Enable Designware XGMAC VLAN Stripping Feature 0/2]

From: Ng <boon.khai.ng
Date: Fri Jul 21 2023 - 02:27:06 EST


From: Boon Khai Ng <boon.khai.ng@xxxxxxxxx>

Hi,
The Designware 10G MAC(dwxgmac) driver has lack of vlan support
in term of hardware, such as the hardware accelerated VLAN stripping.
The driver was not draft from scratch, however it was ported from the
Ethernet Quality-of-Service (dwmac4) driver, it was tested working on
ourside.

Reviewed-by: Shevchenko Andriy <andriy.shevchenko@xxxxxxxxxxxxxxx>

Boon Khai Ng (2):
dt-bindings: net: snps,dwmac: Add description for rx-vlan-offload
net: stmmac: dwxgmac2: Add support for HW-accelerated VLAN Stripping

.../devicetree/bindings/net/snps,dwmac.yaml | 5 +++
.../net/ethernet/stmicro/stmmac/dwxgmac2.h | 28 ++++++++++++++
.../ethernet/stmicro/stmmac/dwxgmac2_core.c | 38 +++++++++++++++++++
.../ethernet/stmicro/stmmac/dwxgmac2_descs.c | 18 +++++++++
drivers/net/ethernet/stmicro/stmmac/hwif.h | 16 ++++++++
.../net/ethernet/stmicro/stmmac/stmmac_main.c | 29 +++++++++++---
.../ethernet/stmicro/stmmac/stmmac_platform.c | 6 +++
include/linux/stmmac.h | 1 +
8 files changed, 136 insertions(+), 5 deletions(-)

--
2.25.1