net: Introduce L3 Master device abstraction
L3 master devices allow users of the abstraction to influence FIB lookups for enslaved devices. Current API provides a means for the master device to return a specific FIB table for an enslaved device, to return an rtable/custom dst and influence the OIF used for fib lookups. Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
007979eaf9
commit
1b69c6d0ae
@@ -1587,6 +1587,9 @@ struct net_device {
|
||||
#ifdef CONFIG_NET_SWITCHDEV
|
||||
const struct switchdev_ops *switchdev_ops;
|
||||
#endif
|
||||
#ifdef CONFIG_NET_L3_MASTER_DEV
|
||||
const struct l3mdev_ops *l3mdev_ops;
|
||||
#endif
|
||||
|
||||
const struct header_ops *header_ops;
|
||||
|
||||
|
Reference in New Issue
Block a user