summaryrefslogtreecommitdiff
path: root/net/8021q
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2016-07-05 12:27:38 +0300
committerDavid S. Miller <davem@davemloft.net>2016-07-05 19:06:28 +0300
commit18bfb924f0005a728caadd90ba755b2a660bf441 (patch)
tree7fc40b134c49d93be19d2e90a971b4c4e09a2430 /net/8021q
parent503eebc265dcf5c512454fd5a6b6673ea4f1d7f2 (diff)
downloadlinux-18bfb924f0005a728caadd90ba755b2a660bf441.tar.xz
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 'net/8021q')
-rw-r--r--net/8021q/vlan_dev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index 86ae75b77390..c8f422c90856 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -790,6 +790,8 @@ static const struct net_device_ops vlan_netdev_ops = {
.ndo_netpoll_cleanup = vlan_dev_netpoll_cleanup,
#endif
.ndo_fix_features = vlan_dev_fix_features,
+ .ndo_neigh_construct = netdev_default_l2upper_neigh_construct,
+ .ndo_neigh_destroy = netdev_default_l2upper_neigh_destroy,
.ndo_fdb_add = switchdev_port_fdb_add,
.ndo_fdb_del = switchdev_port_fdb_del,
.ndo_fdb_dump = switchdev_port_fdb_dump,