diff options
author | 2017-06-13 13:27:22 -0700 | |
---|---|---|
committer | 2017-06-13 16:35:03 -0400 | |
commit | 3cc9f2573cdcbc6991aa2d1c8e04a4b9190487f8 (patch) | |
tree | 1f4d13a47187b7662ea5369ffe163deee2c79550 /include/linux/socket.h | |
parent | net: dsa: Associate slave network device with CPU port (diff) | |
download | wireguard-linux-3cc9f2573cdcbc6991aa2d1c8e04a4b9190487f8.tar.xz wireguard-linux-3cc9f2573cdcbc6991aa2d1c8e04a4b9190487f8.zip |
net: dsa: Introduce dsa_get_cpu_port()
Introduce a helper function which will return a reference to the CPU
port used in a dsa_switch_tree. Right now this is a singleton, but this
will change once we introduce multi-CPU port support, so ease the
transition by converting the affected code paths.
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/socket.h')
0 files changed, 0 insertions, 0 deletions