]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/net/dsa.h
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)
commit4cfab3566710826e62adbf100875d2dca32434b6
tree743a7e8ff1b2dfd6b631f135db2330df687c53f8
parentaad74d849dd56a04ccb289f7c61909a68337ce5e
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