commit | d945097bb19501bd95790d8220d4eeb418b6ebb2 | [log] [tgz] |
---|---|---|
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | Mon Oct 16 11:12:15 2017 -0400 |
committer | David S. Miller <davem@davemloft.net> | Wed Oct 18 12:24:33 2017 +0100 |
tree | ff83357b296408d65537c9e04f5880cf0dba7aff | |
parent | 6158eaa7a717b469b1b0c0ae6d79910737686279 [diff] |
net: dsa: add slave to port helper Many portions of DSA core code require to get the dsa_port structure corresponding to a slave net_device. For this purpose, introduce a dsa_slave_to_port() helper. 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>