[PATCH v1 0/8] drivers: net: stmicro: Add VLAN support

From: Boon Khai Ng
Date: Thu Mar 30 2023 - 03:02:56 EST


Hi,
The Designware 10G MAC(dwxgmac) driver has lack of vlan support in term of
hardware, such as the hardware accelerated VLAN stripping, hardware filtering
and vlan fail queue. These patches are meant to enable not only the hardware
support of VLAN features but also the promiscous mode. 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.

Boon Khai Ng (8):
drivers: net: stmmac_main: Add support for HW-accelerated VLAN
Stripping
drivers: net: stmmac_main: fix vlan toggle option.
drivers: net: stmmac: Add support for HW-accelerated VLAN Stripping
drivers: net: dwmac: Add use_hw_vlan setting
net: stmmac: Add support for VLAN Rx filtering
net: stmmac: Add support for VLAN promiscuous mode
net: stmmac: Add Double VLAN handling for VLAN Rx filtering
net: stmmac: Add option for VLAN filter fail queue enable

drivers/net/ethernet/stmicro/stmmac/common.h | 1 +
.../net/ethernet/stmicro/stmmac/dwxgmac2.h | 56 +++
.../ethernet/stmicro/stmmac/dwxgmac2_core.c | 328 +++++++++++++++++-
.../ethernet/stmicro/stmmac/dwxgmac2_descs.c | 15 +
drivers/net/ethernet/stmicro/stmmac/hwif.h | 16 +
.../net/ethernet/stmicro/stmmac/stmmac_main.c | 30 +-
.../ethernet/stmicro/stmmac/stmmac_platform.c | 13 +
include/linux/stmmac.h | 1 +
8 files changed, 452 insertions(+), 8 deletions(-)

--
2.25.1