diff options
author | Jiri Pirko <jiri@mellanox.com> | 2016-07-05 11:27:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-05 09:06:28 -0700 |
commit | 18bfb924f0005a728caadd90ba755b2a660bf441 (patch) | |
tree | 7fc40b134c49d93be19d2e90a971b4c4e09a2430 /include/linux/netdevice.h | |
parent | 503eebc265dcf5c512454fd5a6b6673ea4f1d7f2 (diff) | |
download | op-kernel-dev-18bfb924f0005a728caadd90ba755b2a660bf441.zip op-kernel-dev-18bfb924f0005a728caadd90ba755b2a660bf441.tar.gz |
net: introduce default neigh_construct/destroy ndo calls for L2 upper devices
L2 upper device needs to propagate neigh_construct/destroy calls down to
lower devices. Do this by defining default ndo functions and use them in
team, bond, bridge and vlan.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 91af73c..49736a3 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -3845,6 +3845,10 @@ void *netdev_lower_dev_get_private(struct net_device *dev, struct net_device *lower_dev); void netdev_lower_state_changed(struct net_device *lower_dev, void *lower_state_info); +int netdev_default_l2upper_neigh_construct(struct net_device *dev, + struct neighbour *n); +void netdev_default_l2upper_neigh_destroy(struct net_device *dev, + struct neighbour *n); /* RSS keys are 40 or 52 bytes long */ #define NETDEV_RSS_KEY_LEN 52 |