lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 8 May 2022 18:27:05 +0300 From: Vladimir Oltean <vladimir.oltean@....com> To: netdev@...r.kernel.org Cc: Jakub Kicinski <kuba@...nel.org>, "David S. Miller" <davem@...emloft.net>, Paolo Abeni <pabeni@...hat.com>, Eric Dumazet <edumazet@...gle.com>, Florian Fainelli <f.fainelli@...il.com>, Vivien Didelot <vivien.didelot@...il.com>, Andrew Lunn <andrew@...n.ch>, Vladimir Oltean <olteanv@...il.com>, Tobias Waldekranz <tobias@...dekranz.com>, Marek Behún <kabel@...nel.org>, Ansuel Smith <ansuelsmth@...il.com>, DENG Qingfang <dqfext@...il.com>, Alvin Šipraga <alsi@...g-olufsen.dk>, Claudiu Manoil <claudiu.manoil@....com>, Alexandre Belloni <alexandre.belloni@...tlin.com>, UNGLinuxDriver@...rochip.com, Colin Foster <colin.foster@...advantage.com>, Linus Walleij <linus.walleij@...aro.org> Subject: [RFC PATCH net-next 0/8] DSA changes for multiple CPU ports (part 1) Some may know that I am trying to enable the second internal port pair from the NXP LS1028A Felix switch for DSA-tagged traffic via "ocelot-8021q". This series represents part 1 (of an unknown number) of that effort. It does some preparation work, like managing host flooding in DSA via a dedicated method, and removing the CPU port as argument from the tagging protocol change procedure. In terms of driver-specific changes, it reworks the 2 tag protocol implementations in the Felix driver to have a structured data format. It enables host flooding towards all tag_8021q CPU ports. It dynamically updates the tag_8021q CPU port used for traps. It also fixes a bug introduced by a previous refactoring/oversimplification commit in net-next. For those interested, I've pushed my WIP branch here: https://github.com/vladimiroltean/linux/commits/dsa-multiple-cpu-ports It shows the more complete picture, but I haven't tested it nearly enough, it just shows the rough shape of where I'd like to bring things. Feedback is welcome. Vladimir Oltean (8): net: dsa: felix: program host FDB entries towards PGID_CPU for tag_8021q too net: dsa: felix: bring the NPI port indirection for host MDBs to surface net: dsa: felix: bring the NPI port indirection for host flooding to surface net: dsa: introduce the dsa_cpu_ports() helper net: dsa: felix: manage host flooding using a specific driver callback net: dsa: remove port argument from ->change_tag_protocol() net: dsa: felix: dynamically determine tag_8021q CPU port for traps net: dsa: felix: reimplement tagging protocol change with function pointers drivers/net/dsa/mv88e6xxx/chip.c | 22 +- drivers/net/dsa/ocelot/felix.c | 469 +++++++++++++++------------- drivers/net/dsa/ocelot/felix.h | 16 + drivers/net/dsa/realtek/rtl8365mb.c | 2 +- drivers/net/ethernet/mscc/ocelot.c | 16 +- include/net/dsa.h | 19 +- net/dsa/dsa2.c | 18 +- net/dsa/dsa_priv.h | 1 + net/dsa/port.c | 8 + net/dsa/slave.c | 36 +-- net/dsa/switch.c | 10 +- 11 files changed, 337 insertions(+), 280 deletions(-) -- 2.25.1
Powered by blists - more mailing lists