net: dsa: Add helper to convert from devlink to ds
authorAndrew Lunn <andrew@lunn.ch>
Fri, 18 Sep 2020 19:11:03 +0000 (21:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Sep 2020 01:17:45 +0000 (18:17 -0700)
commitccc3e6b0191c58784c4b4ffc735f81970df33a11
tree6b23909ce6c621dae8178433c422d8a600b89dfa
parentd4602a9f47196dd62deba66ec361b5897f1ae62b
net: dsa: Add helper to convert from devlink to ds

Given a devlink instance, return the dsa switch it is associated to.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h
net/dsa/dsa.c