mbox series

[net-next,v2,0/5] net: dsa: use per-port upstream port

Message ID 20171205203413.3342-1-vivien.didelot@savoirfairelinux.com
Headers show
Series net: dsa: use per-port upstream port | expand

Message

Vivien Didelot Dec. 5, 2017, 8:34 p.m. UTC
An upstream port is a local switch port used to reach a CPU port.

DSA still considers a unique CPU port in the whole switch fabric and
thus return a unique upstream port for a given switch. This is wrong in
a multiple CPU ports environment.

We are now switching to using the dedicated CPU port assigned to each
port in order to get rid of the deprecated unique tree CPU port.

This patchset makes the dsa_upstream_port() helper take a port argument
and goes one step closer complete support for multiple CPU ports.

Changes in v2:
  - reverse-christmas-tree-fy variables

Vivien Didelot (5):
  net: dsa: mv88e6xxx: egress floods all DSA ports
  net: dsa: mv88e6xxx: helper to setup upstream port
  net: dsa: mv88e6xxx: setup global upstream port
  net: dsa: assign a CPU port to DSA port
  net: dsa: return per-port upstream port

 drivers/net/dsa/mv88e6xxx/chip.c | 60 ++++++++++++++++++++++++++--------------
 include/net/dsa.h                |  9 ++++--
 net/dsa/dsa2.c                   |  2 +-
 3 files changed, 46 insertions(+), 25 deletions(-)

Comments

David Miller Dec. 5, 2017, 11:02 p.m. UTC | #1
From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Date: Tue,  5 Dec 2017 15:34:08 -0500

> An upstream port is a local switch port used to reach a CPU port.
> 
> DSA still considers a unique CPU port in the whole switch fabric and
> thus return a unique upstream port for a given switch. This is wrong in
> a multiple CPU ports environment.
> 
> We are now switching to using the dedicated CPU port assigned to each
> port in order to get rid of the deprecated unique tree CPU port.
> 
> This patchset makes the dsa_upstream_port() helper take a port argument
> and goes one step closer complete support for multiple CPU ports.
> 
> Changes in v2:
>   - reverse-christmas-tree-fy variables

Series applied, thanks Vivien.