net: dsa: netc: add bridge mode support
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest9 patches 2 repliesApplied 9/9
- v49 patches 3 repliesSuperseded
- v39 patches 2 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 9 patches | 1 reply | Superseded | |
| v1 | 9 patches | 1 reply | Superseded |
Changes in v5 from the cover letter
1. Use __set_bit()/__clear_bit() instead of set_bit()/clear_bit() in ntmp_lookup_free_eid()/ntmp_clear_eid_bitmap()
2. Correct the ect_eid check in netc_delete_vlan_egress_rule()
v4 link: https://lore.kernel.org/imx/[email protected]/
v3 link: https://lore.kernel.org/imx/[email protected]/
v2 link: https://lore.kernel.org/imx/[email protected]/
v1 link: https://lore.kernel.org/imx/[email protected]/
---
Patches in v5 All 9 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | net: enetc: add interfaces to manage dynamic FDB entriesdrivers/ drivers/ include/ | +167 | 0 replies | Applied |
| 2/9 | net: enetc: add "Update" and "Delete" operations to VLAN filter tabledrivers/ drivers/ include/ | +105 | 0 replies | Applied |
| 3/9 | net: enetc: add interfaces to manage egress treatment tabledrivers/ drivers/ include/ | +137 | 0 replies | Applied |
| 4/9 | net: enetc: add "Update" operation to the egress count tabledrivers/ include/ | +47 | 0 replies | Applied |
| 5/9 | net: dsa: netc: initialize the group bitmap of ETT and ECTdrivers/ drivers/ include/ | +102 | 1 reply | Applied |
| 6/9 | net: enetc: add helpers to set/clear table bitmapdrivers/ include/ | +26 | 0 replies | Applied |
| 7/9 | net: dsa: netc: add VLAN filter table and egress treatment managementdrivers/ drivers/ include/ | +478 | 1 reply | Applied |
| 8/9 | net: dsa: netc: add bridge mode supportdrivers/ drivers/ | +363 | 0 replies | Applied |
| 9/9 | net: dsa: netc: implement dynamic FDB entry ageingdrivers/ drivers/ | +74 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH v5 net-next 0/9] net: dsa: netc: add bridge mode support
From: Wei Fang <[email protected]>
This series adds bridge mode support to the NETC DSA switch driver, covering both VLAN-aware and VLAN-unaware operation.
The NETC switch manages forwarding through a set of hardware tables accessed via NTMP: the FDB table (FDBT), VLAN filter table (VFT), egress treatment table (ETT), and egress count table (ECT). The series extends the NTMP layer with the operations required for bridging, then builds the DSA bridge callbacks on top.
Since all switch ports share the VFT, so only one VLAN-aware bridge is supported.
FDB aging is managed in software. A periodic delayed work sweeps the table using the hardware activity element mechanism, with a default aging time of 300 seconds matching the IEEE 802.1Q standard. Per-port entries are also flushed immediately on bridge leave and link-down events.
---
v5:
1. Use __set_bit()/__clear_bit() instead of set_bit()/clear_bit() in ntmp_lookup_free_eid()/ntmp_clear_eid_bitmap()
2. Correct the ect_eid check in netc_delete_vlan_egress_rule()
v4 link: https://lore.kernel.org/imx/[email protected]/
v3 link: https://lore.kernel.org/imx/[email protected]/
v2 link: https://lore.kernel.org/imx/[email protected]/
v1 link: https://lore.kernel.org/imx/[email protected]/
---
Wei Fang (9):
net: enetc: add interfaces to manage dynamic FDB entries
net: enetc: add "Update" and "Delete" operations to VLAN filter table
net: enetc: add interfaces to manage egress treatment table
net: enetc: add "Update" operation to the egress count table
net: dsa: netc: initialize the group bitmap of ETT and ECT
net: enetc: add helpers to set/clear table bitmap
net: dsa: netc: add VLAN filter table and egress treatment management
net: dsa: netc: add bridge mode support
net: dsa: netc: implement dynamic FDB entry ageing
drivers/net/dsa/netc/netc_main.c | 965 +++++++++++++++++- drivers/net/dsa/netc/netc_switch.h | 33 + drivers/net/dsa/netc/netc_switch_hw.h | 6 + drivers/net/ethernet/freescale/enetc/ntmp.c | 440 +++++++- .../ethernet/freescale/enetc/ntmp_private.h | 18 +- include/linux/fsl/ntmp.h | 55 + 6 files changed, 1495 insertions(+), 22 deletions(-)
Signature · 1 line
2.34.1