]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: dsa: add slave to master helper
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 16 Oct 2017 15:12:16 +0000 (11:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Oct 2017 11:24:33 +0000 (12:24 +0100)
commitd0006b002208936d36af8e4dce1f6dfeebb2dfba
tree414a1d4ba8c9c403fa88544b9f490eeb323facf4
parentd945097bb19501bd95790d8220d4eeb418b6ebb2
net: dsa: add slave to master helper

Many part of the DSA slave code require to get the master device
assigned to a slave device. Remove dsa_master_netdev() in favor of a
dsa_slave_to_master() helper which does that.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa_priv.h
net/dsa/slave.c