]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Add wrappers for overloaded ndo_ops
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 20 Jul 2020 03:49:52 +0000 (20:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2020 23:48:22 +0000 (16:48 -0700)
commitaff66b800dab6778fef8b0c368c37cd39378f926
tree743a7e8ff1b2dfd6b631f135db2330df687c53f8
parent77cc5ca6d12af558303af7f50792735aa72d3e09
net: dsa: Add wrappers for overloaded ndo_ops

Add definitions for the dsa_netdevice_ops structure which is a subset of
the net_device_ops structure for the specific operations that we care
about overlaying on top of the DSA CPU port net_device and provide
inline stubs that take core managing whether DSA code is reachable.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h