net: replace br_fdb_external_learn_* calls with switchdev notifier events
[deliverable/linux.git] / include / net / switchdev.h
index 7f8d74372d87051645492552d426f3c96a7010a3..201120e18e4d6d836501475c29166424fd8eb4b9 100644 (file)
 #include <linux/netdevice.h>
 #include <linux/notifier.h>
 
+enum netdev_switch_notifier_type {
+       NETDEV_SWITCH_FDB_ADD = 1,
+       NETDEV_SWITCH_FDB_DEL,
+};
+
 struct netdev_switch_notifier_info {
        struct net_device *dev;
 };
 
+struct netdev_switch_notifier_fdb_info {
+       struct netdev_switch_notifier_info info; /* must be first */
+       const unsigned char *addr;
+       u16 vid;
+};
+
 static inline struct net_device *
 netdev_switch_notifier_info_to_dev(const struct netdev_switch_notifier_info *info)
 {
This page took 0.038494 seconds and 5 git commands to generate.