[Enable Designware XGMAC VLAN Stripping Feature 0/2]

Boon at ecsmtp.png.intel.com Boon at ecsmtp.png.intel.com
Thu Jul 20 23:26:15 PDT 2023


From: Boon Khai Ng <boon.khai.ng at intel.com>

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 at linux.intel.com>

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




More information about the linux-arm-kernel mailing list