[PATCH v6 net-next 00/14] Add more features for ENETC v4 - round 2

Wei Fang
2025-04-28T11:21:52Z

This patch set adds the following features.
1. Compared with ENETC v1, the formats of tables and command BD of ENETC
v4 have changed significantly, and the two are not compatible. Therefore,
in order to support the NETC Table Management Protocol (NTMP) v2.0, we
introduced the netc-lib driver and added support for MAC address filter
table and RSS table.
2. Add MAC filter and VLAN filter support for i.MX95 ENETC PF.
3. Add RSS support for i.MX95 ENETC PF.
4. Add loopback support for i.MX95 ENETC PF.

---
v1 Link: https://lore.kernel.org/imx/20250103060610.2233908-1-wei.fang@nxp.com/
v2 Link: https://lore.kernel.org/imx/20250113082245.2332775-1-wei.fang@nxp.com/
v3 Link: https://lore.kernel.org/imx/20250304072201.1332603-1-wei.fang@nxp.com/
v4 Link: https://lore.kernel.org/imx/20250311053830.1516523-1-wei.fang@nxp.com/
v5 Link: https://lore.kernel.org/imx/20250411095752.3072696-1-wei.fang@nxp.com/
---

Wei Fang (14):
net: enetc: add initial netc-lib driver to support NTMP
net: enetc: add command BD ring support for i.MX95 ENETC
net: enetc: move generic MAC filtering interfaces to enetc-core
net: enetc: add MAC filtering for i.MX95 ENETC PF
net: enetc: add debugfs interface to dump MAC filter
net: enetc: add set/get_rss_table() hooks to enetc_si_ops
net: enetc: make enetc_set_rss_key() reusable
net: enetc: add RSS support for i.MX95 ENETC PF
net: enetc: change enetc_set_rss() to void type
net: enetc: enable RSS feature by default
net: enetc: extract enetc_refresh_vlan_ht_filter()
net: enetc: move generic VLAN hash filter functions to
enetc_pf_common.c
net: enetc: add VLAN filtering support for i.MX95 ENETC PF
net: enetc: add loopback support for i.MX95 ENETC PF

MAINTAINERS | 1 +
drivers/net/ethernet/freescale/enetc/Kconfig | 8 +
drivers/net/ethernet/freescale/enetc/Makefile | 4 +
drivers/net/ethernet/freescale/enetc/enetc.c | 76 ++-
drivers/net/ethernet/freescale/enetc/enetc.h | 45 +-
.../ethernet/freescale/enetc/enetc4_debugfs.c | 90 ++++
.../ethernet/freescale/enetc/enetc4_debugfs.h | 20 +
.../net/ethernet/freescale/enetc/enetc4_hw.h | 12 +
.../net/ethernet/freescale/enetc/enetc4_pf.c | 368 +++++++++++++-
.../net/ethernet/freescale/enetc/enetc_cbdr.c | 50 ++
.../ethernet/freescale/enetc/enetc_ethtool.c | 74 ++-
.../net/ethernet/freescale/enetc/enetc_pf.c | 105 +---
.../net/ethernet/freescale/enetc/enetc_pf.h | 14 +-
.../freescale/enetc/enetc_pf_common.c | 93 +++-
.../freescale/enetc/enetc_pf_common.h | 3 +
.../net/ethernet/freescale/enetc/enetc_vf.c | 10 +-
drivers/net/ethernet/freescale/enetc/ntmp.c | 462 ++++++++++++++++++
.../ethernet/freescale/enetc/ntmp_private.h | 103 ++++
include/linux/fsl/ntmp.h | 121 +++++
19 files changed, 1485 insertions(+), 174 deletions(-)
create mode 100644 drivers/net/ethernet/freescale/enetc/enetc4_debugfs.c
create mode 100644 drivers/net/ethernet/freescale/enetc/enetc4_debugfs.h
create mode 100644 drivers/net/ethernet/freescale/enetc/ntmp.c
create mode 100644 drivers/net/ethernet/freescale/enetc/ntmp_private.h
create mode 100644 include/linux/fsl/ntmp.h

--
2.34.1