linux/drivers/net/dsa/mv88e6xxx
Vivien Didelot 07073c79bf net: dsa: return per-port upstream port
The current dsa_upstream_port() helper still assumes a unique CPU port
in the whole switch fabric. This is becoming wrong, as every port in the
fabric has its dedicated CPU port, thus every port has an upstream port.

Add a port argument to the dsa_upstream_port() helper and fetch its CPU
port instead of the deprecated unique fabric CPU port. A CPU or unused
port has no dedicated CPU port, so return itself in this case.

At the same time, change the return value from u8 to unsigned int since
there is no need to limit the size here.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-05 18:01:34 -05:00
..
chip.c net: dsa: return per-port upstream port 2017-12-05 18:01:34 -05:00
chip.h net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
global1_atu.c net: dsa: mv88e6xxx: prefix Global ATU macros 2017-06-15 14:07:48 -04:00
global1_vtu.c net: dsa: mv88e6xxx: prefix Global VTU macros 2017-06-15 14:07:49 -04:00
global1.c net: dsa: mv88e6xxx: Fix stats histogram mode 2017-11-11 19:34:33 +09:00
global1.h net: dsa: mv88e6xxx: Fix stats histogram mode 2017-11-11 19:34:33 +09:00
global2.c net: dsa: mv88e6xxx: make irq_chip const 2017-08-20 20:02:29 -07:00
global2.h net: dsa: mv88e6xxx: add a global2_addr info flag 2017-07-18 11:10:58 -07:00
Kconfig net: dsa: mv88e6xxx: Select IRQ_DOMAIN 2016-11-18 13:54:22 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
phy.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
phy.h net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
port.c net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
port.h net: dsa: mv88e6xxx: remove EEE support 2017-08-01 20:09:10 -07:00
serdes.c net: dsa: mv88e6xxx: fix error code in mv88e6390_serdes_power() 2017-06-25 11:42:33 -04:00
serdes.h net: dsa: mv88e6xxx: rename chip header 2017-06-04 20:07:40 -04:00