net: dsa: Add helper for converting devlink port to ds and port
authorAndrew Lunn <andrew@lunn.ch>
Sun, 4 Oct 2020 16:12:56 +0000 (18:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2020 21:38:53 +0000 (14:38 -0700)
commit7d1e2a10681d3b6eeaace68885ef5de88ce03efe
tree6ac4295287475a82c0562a5ee7a0b708ed1852ad
parent08156ba430b412bd9c23fe6155a58c7cb166045c
net: dsa: Add helper for converting devlink port to ds and port

Hide away from DSA drivers how devlink works.

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