* [patch net-next 1/2] switchdev: introduce switchdev notifier
@ 2015-01-15 22:49 Jiri Pirko
2015-01-15 22:49 ` [patch net-next 2/2] net: replace br_fdb_external_learn_* calls with switchdev notifier events Jiri Pirko
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Jiri Pirko @ 2015-01-15 22:49 UTC (permalink / raw)
To: netdev; +Cc: davem, jhs, sfeldma, stephen, linus.luessing, tgraf
This patch introduces new notifier for purposes of exposing events which happen
on switch driver side. The consumers of the event messages are mainly involved
masters, namely bridge and ovs.
Suggested-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
---
include/net/switchdev.h | 31 ++++++++++++++++++++++
net/switchdev/switchdev.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 96 insertions(+)
diff --git a/include/net/switchdev.h b/include/net/switchdev.h
index 8a6d164..7f8d743 100644
--- a/include/net/switchdev.h
+++ b/include/net/switchdev.h
@@ -11,12 +11,27 @@
#define _LINUX_SWITCHDEV_H_
#include <linux/netdevice.h>
+#include <linux/notifier.h>
+
+struct netdev_switch_notifier_info {
+ struct net_device *dev;
+};
+
+static inline struct net_device *
+netdev_switch_notifier_info_to_dev(const struct netdev_switch_notifier_info *info)
+{
+ return info->dev;
+}
#ifdef CONFIG_NET_SWITCHDEV
int netdev_switch_parent_id_get(struct net_device *dev,
struct netdev_phys_item_id *psid);
int netdev_switch_port_stp_update(struct net_device *dev, u8 state);
+int register_netdev_switch_notifier(struct notifier_block *nb);
+int unregister_netdev_switch_notifier(struct notifier_block *nb);
+int call_netdev_switch_notifiers(unsigned long val, struct net_device *dev,
+ struct netdev_switch_notifier_info *info);
#else
@@ -32,6 +47,22 @@ static inline int netdev_switch_port_stp_update(struct net_device *dev,
return -EOPNOTSUPP;
}
+static inline int register_netdev_switch_notifier(struct notifier_block *nb)
+{
+ return 0;
+}
+
+static inline int unregister_netdev_switch_notifier(struct notifier_block *nb)
+{
+ return 0;
+}
+
+static inline int call_netdev_switch_notifiers(unsigned long val, struct net_device *dev,
+ struct netdev_switch_notifier_info *info);
+{
+ return NOTIFY_DONE;
+}
+
#endif
#endif /* _LINUX_SWITCHDEV_H_ */
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c
index d162b21..22e02f4 100644
--- a/net/switchdev/switchdev.c
+++ b/net/switchdev/switchdev.c
@@ -11,6 +11,8 @@
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/init.h>
+#include <linux/mutex.h>
+#include <linux/notifier.h>
#include <linux/netdevice.h>
#include <net/switchdev.h>
@@ -50,3 +52,66 @@ int netdev_switch_port_stp_update(struct net_device *dev, u8 state)
return ops->ndo_switch_port_stp_update(dev, state);
}
EXPORT_SYMBOL(netdev_switch_port_stp_update);
+
+static DEFINE_MUTEX(netdev_switch_mutex);
+static RAW_NOTIFIER_HEAD(netdev_switch_notif_chain);
+
+/**
+ * register_netdev_switch_notifier - Register nofifier
+ * @nb: notifier_block
+ *
+ * Register switch device notifier. This should be used by code
+ * which needs to monitor events happening in particular device.
+ * Return values are same as for atomic_notifier_chain_register().
+ */
+int register_netdev_switch_notifier(struct notifier_block *nb)
+{
+ int err;
+
+ mutex_lock(&netdev_switch_mutex);
+ err = raw_notifier_chain_register(&netdev_switch_notif_chain, nb);
+ mutex_unlock(&netdev_switch_mutex);
+ return err;
+}
+EXPORT_SYMBOL(register_netdev_switch_notifier);
+
+/**
+ * unregister_netdev_switch_notifier - Unregister nofifier
+ * @nb: notifier_block
+ *
+ * Unregister switch device notifier.
+ * Return values are same as for atomic_notifier_chain_unregister().
+ */
+int unregister_netdev_switch_notifier(struct notifier_block *nb)
+{
+ int err;
+
+ mutex_lock(&netdev_switch_mutex);
+ err = raw_notifier_chain_unregister(&netdev_switch_notif_chain, nb);
+ mutex_unlock(&netdev_switch_mutex);
+ return err;
+}
+EXPORT_SYMBOL(unregister_netdev_switch_notifier);
+
+/**
+ * call_netdev_switch_notifiers - Call nofifiers
+ * @val: value passed unmodified to notifier function
+ * @dev: port device
+ * @info: notifier information data
+ *
+ * Call all network notifier blocks. This should be called by driver
+ * when it needs to propagate hardware event.
+ * Return values are same as for atomic_notifier_call_chain().
+ */
+int call_netdev_switch_notifiers(unsigned long val, struct net_device *dev,
+ struct netdev_switch_notifier_info *info)
+{
+ int err;
+
+ info->dev = dev;
+ mutex_lock(&netdev_switch_mutex);
+ err = raw_notifier_call_chain(&netdev_switch_notif_chain, val, info);
+ mutex_unlock(&netdev_switch_mutex);
+ return err;
+}
+EXPORT_SYMBOL(call_netdev_switch_notifiers);
--
1.9.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [patch net-next 2/2] net: replace br_fdb_external_learn_* calls with switchdev notifier events
2015-01-15 22:49 [patch net-next 1/2] switchdev: introduce switchdev notifier Jiri Pirko
@ 2015-01-15 22:49 ` Jiri Pirko
2015-01-16 19:32 ` Scott Feldman
2015-01-18 5:24 ` David Miller
2015-01-16 19:28 ` [patch net-next 1/2] switchdev: introduce switchdev notifier Scott Feldman
2015-01-18 5:24 ` David Miller
2 siblings, 2 replies; 8+ messages in thread
From: Jiri Pirko @ 2015-01-15 22:49 UTC (permalink / raw)
To: netdev; +Cc: davem, jhs, sfeldma, stephen, linus.luessing, tgraf
This patch benefits from newly introduced switchdev notifier and uses it
to propagate fdb learn events from rocker driver to bridge. That avoids
direct function calls and possible use by other listeners (ovs).
Suggested-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
---
drivers/net/ethernet/rocker/rocker.c | 10 +++++--
include/linux/if_bridge.h | 18 -------------
include/net/switchdev.h | 11 ++++++++
net/bridge/br.c | 52 +++++++++++++++++++++++++++++++++++-
net/bridge/br_fdb.c | 38 +++-----------------------
net/bridge/br_private.h | 4 +++
6 files changed, 78 insertions(+), 55 deletions(-)
diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c
index cad8cf9..964d719 100644
--- a/drivers/net/ethernet/rocker/rocker.c
+++ b/drivers/net/ethernet/rocker/rocker.c
@@ -3026,11 +3026,17 @@ static void rocker_port_fdb_learn_work(struct work_struct *work)
container_of(work, struct rocker_fdb_learn_work, work);
bool removing = (lw->flags & ROCKER_OP_FLAG_REMOVE);
bool learned = (lw->flags & ROCKER_OP_FLAG_LEARNED);
+ struct netdev_switch_notifier_fdb_info info;
+
+ info.addr = lw->addr;
+ info.vid = lw->vid;
if (learned && removing)
- br_fdb_external_learn_del(lw->dev, lw->addr, lw->vid);
+ call_netdev_switch_notifiers(NETDEV_SWITCH_FDB_DEL,
+ lw->dev, &info.info);
else if (learned && !removing)
- br_fdb_external_learn_add(lw->dev, lw->addr, lw->vid);
+ call_netdev_switch_notifiers(NETDEV_SWITCH_FDB_ADD,
+ lw->dev, &info.info);
kfree(work);
}
diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h
index 0a8ce76..a57bca2 100644
--- a/include/linux/if_bridge.h
+++ b/include/linux/if_bridge.h
@@ -50,24 +50,6 @@ extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __use
typedef int br_should_route_hook_t(struct sk_buff *skb);
extern br_should_route_hook_t __rcu *br_should_route_hook;
-#if IS_ENABLED(CONFIG_BRIDGE)
-int br_fdb_external_learn_add(struct net_device *dev,
- const unsigned char *addr, u16 vid);
-int br_fdb_external_learn_del(struct net_device *dev,
- const unsigned char *addr, u16 vid);
-#else
-static inline int br_fdb_external_learn_add(struct net_device *dev,
- const unsigned char *addr, u16 vid)
-{
- return 0;
-}
-static inline int br_fdb_external_learn_del(struct net_device *dev,
- const unsigned char *addr, u16 vid)
-{
- return 0;
-}
-#endif
-
#if IS_ENABLED(CONFIG_BRIDGE) && IS_ENABLED(CONFIG_BRIDGE_IGMP_SNOOPING)
int br_multicast_list_adjacent(struct net_device *dev,
struct list_head *br_ip_list);
diff --git a/include/net/switchdev.h b/include/net/switchdev.h
index 7f8d743..201120e 100644
--- a/include/net/switchdev.h
+++ b/include/net/switchdev.h
@@ -13,10 +13,21 @@
#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)
{
diff --git a/net/bridge/br.c b/net/bridge/br.c
index 44425af..fb57ab6 100644
--- a/net/bridge/br.c
+++ b/net/bridge/br.c
@@ -19,6 +19,7 @@
#include <linux/llc.h>
#include <net/llc.h>
#include <net/stp.h>
+#include <net/switchdev.h>
#include "br_private.h"
@@ -120,6 +121,48 @@ static struct notifier_block br_device_notifier = {
.notifier_call = br_device_event
};
+static int br_netdev_switch_event(struct notifier_block *unused,
+ unsigned long event, void *ptr)
+{
+ struct net_device *dev = netdev_switch_notifier_info_to_dev(ptr);
+ struct net_bridge_port *p;
+ struct net_bridge *br;
+ struct netdev_switch_notifier_fdb_info *fdb_info;
+ int err = NOTIFY_DONE;
+
+ rtnl_lock();
+ p = br_port_get_rtnl(dev);
+ if (!p)
+ goto out;
+
+ br = p->br;
+
+ switch (event) {
+ case NETDEV_SWITCH_FDB_ADD:
+ fdb_info = ptr;
+ err = br_fdb_external_learn_add(br, p, fdb_info->addr,
+ fdb_info->vid);
+ if (err)
+ err = notifier_from_errno(err);
+ break;
+ case NETDEV_SWITCH_FDB_DEL:
+ fdb_info = ptr;
+ err = br_fdb_external_learn_del(br, p, fdb_info->addr,
+ fdb_info->vid);
+ if (err)
+ err = notifier_from_errno(err);
+ break;
+ }
+
+out:
+ rtnl_unlock();
+ return err;
+}
+
+static struct notifier_block br_netdev_switch_notifier = {
+ .notifier_call = br_netdev_switch_event,
+};
+
static void __net_exit br_net_exit(struct net *net)
{
struct net_device *dev;
@@ -169,10 +212,14 @@ static int __init br_init(void)
if (err)
goto err_out3;
- err = br_netlink_init();
+ err = register_netdev_switch_notifier(&br_netdev_switch_notifier);
if (err)
goto err_out4;
+ err = br_netlink_init();
+ if (err)
+ goto err_out5;
+
brioctl_set(br_ioctl_deviceless_stub);
#if IS_ENABLED(CONFIG_ATM_LANE)
@@ -185,6 +232,8 @@ static int __init br_init(void)
return 0;
+err_out5:
+ unregister_netdev_switch_notifier(&br_netdev_switch_notifier);
err_out4:
unregister_netdevice_notifier(&br_device_notifier);
err_out3:
@@ -202,6 +251,7 @@ static void __exit br_deinit(void)
{
stp_proto_unregister(&br_stp_proto);
br_netlink_fini();
+ unregister_netdev_switch_notifier(&br_netdev_switch_notifier);
unregister_netdevice_notifier(&br_device_notifier);
brioctl_set(NULL);
unregister_pernet_subsys(&br_net_ops);
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c
index e6e0372..03667e6 100644
--- a/net/bridge/br_fdb.c
+++ b/net/bridge/br_fdb.c
@@ -990,26 +990,14 @@ void br_fdb_unsync_static(struct net_bridge *br, struct net_bridge_port *p)
}
}
-int br_fdb_external_learn_add(struct net_device *dev,
+int br_fdb_external_learn_add(struct net_bridge *br, struct net_bridge_port *p,
const unsigned char *addr, u16 vid)
{
- struct net_bridge_port *p;
- struct net_bridge *br;
struct hlist_head *head;
struct net_bridge_fdb_entry *fdb;
int err = 0;
- rtnl_lock();
-
- p = br_port_get_rtnl(dev);
- if (!p) {
- pr_info("bridge: %s not a bridge port\n", dev->name);
- err = -EINVAL;
- goto err_rtnl_unlock;
- }
-
- br = p->br;
-
+ ASSERT_RTNL();
spin_lock_bh(&br->hash_lock);
head = &br->hash[br_mac_hash(addr, vid)];
@@ -1034,33 +1022,18 @@ int br_fdb_external_learn_add(struct net_device *dev,
err_unlock:
spin_unlock_bh(&br->hash_lock);
-err_rtnl_unlock:
- rtnl_unlock();
return err;
}
-EXPORT_SYMBOL(br_fdb_external_learn_add);
-int br_fdb_external_learn_del(struct net_device *dev,
+int br_fdb_external_learn_del(struct net_bridge *br, struct net_bridge_port *p,
const unsigned char *addr, u16 vid)
{
- struct net_bridge_port *p;
- struct net_bridge *br;
struct hlist_head *head;
struct net_bridge_fdb_entry *fdb;
int err = 0;
- rtnl_lock();
-
- p = br_port_get_rtnl(dev);
- if (!p) {
- pr_info("bridge: %s not a bridge port\n", dev->name);
- err = -EINVAL;
- goto err_rtnl_unlock;
- }
-
- br = p->br;
-
+ ASSERT_RTNL();
spin_lock_bh(&br->hash_lock);
head = &br->hash[br_mac_hash(addr, vid)];
@@ -1071,9 +1044,6 @@ int br_fdb_external_learn_del(struct net_device *dev,
err = -ENOENT;
spin_unlock_bh(&br->hash_lock);
-err_rtnl_unlock:
- rtnl_unlock();
return err;
}
-EXPORT_SYMBOL(br_fdb_external_learn_del);
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
index d808d76..e8e3f36 100644
--- a/net/bridge/br_private.h
+++ b/net/bridge/br_private.h
@@ -402,6 +402,10 @@ int br_fdb_dump(struct sk_buff *skb, struct netlink_callback *cb,
struct net_device *dev, struct net_device *fdev, int idx);
int br_fdb_sync_static(struct net_bridge *br, struct net_bridge_port *p);
void br_fdb_unsync_static(struct net_bridge *br, struct net_bridge_port *p);
+int br_fdb_external_learn_add(struct net_bridge *br, struct net_bridge_port *p,
+ const unsigned char *addr, u16 vid);
+int br_fdb_external_learn_del(struct net_bridge *br, struct net_bridge_port *p,
+ const unsigned char *addr, u16 vid);
/* br_forward.c */
void br_deliver(const struct net_bridge_port *to, struct sk_buff *skb);
--
1.9.3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [patch net-next 1/2] switchdev: introduce switchdev notifier
2015-01-15 22:49 [patch net-next 1/2] switchdev: introduce switchdev notifier Jiri Pirko
2015-01-15 22:49 ` [patch net-next 2/2] net: replace br_fdb_external_learn_* calls with switchdev notifier events Jiri Pirko
@ 2015-01-16 19:28 ` Scott Feldman
2015-01-18 5:24 ` David Miller
2 siblings, 0 replies; 8+ messages in thread
From: Scott Feldman @ 2015-01-16 19:28 UTC (permalink / raw)
To: Jiri Pirko
Cc: Netdev, David S. Miller, Jamal Hadi Salim, Scott Feldman,
stephen@networkplumber.org, linus.luessing, Thomas Graf
On Thu, Jan 15, 2015 at 2:49 PM, Jiri Pirko <jiri@resnulli.us> wrote:
> This patch introduces new notifier for purposes of exposing events which happen
> on switch driver side. The consumers of the event messages are mainly involved
> masters, namely bridge and ovs.
>
> Suggested-by: Thomas Graf <tgraf@suug.ch>
> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch net-next 2/2] net: replace br_fdb_external_learn_* calls with switchdev notifier events
2015-01-15 22:49 ` [patch net-next 2/2] net: replace br_fdb_external_learn_* calls with switchdev notifier events Jiri Pirko
@ 2015-01-16 19:32 ` Scott Feldman
2015-01-17 8:31 ` Jiri Pirko
2015-01-18 5:24 ` David Miller
1 sibling, 1 reply; 8+ messages in thread
From: Scott Feldman @ 2015-01-16 19:32 UTC (permalink / raw)
To: Jiri Pirko
Cc: Netdev, David S. Miller, Jamal Hadi Salim, Scott Feldman,
stephen@networkplumber.org, linus.luessing, Thomas Graf
On Thu, Jan 15, 2015 at 2:49 PM, Jiri Pirko <jiri@resnulli.us> wrote:
> This patch benefits from newly introduced switchdev notifier and uses it
> to propagate fdb learn events from rocker driver to bridge. That avoids
> direct function calls and possible use by other listeners (ovs).
>
> Suggested-by: Thomas Graf <tgraf@suug.ch>
> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
> drivers/net/ethernet/rocker/rocker.c | 10 +++++--
> include/linux/if_bridge.h | 18 -------------
> include/net/switchdev.h | 11 ++++++++
> net/bridge/br.c | 52 +++++++++++++++++++++++++++++++++++-
> net/bridge/br_fdb.c | 38 +++-----------------------
> net/bridge/br_private.h | 4 +++
> 6 files changed, 78 insertions(+), 55 deletions(-)
>
> diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c
> index cad8cf9..964d719 100644
> --- a/drivers/net/ethernet/rocker/rocker.c
> +++ b/drivers/net/ethernet/rocker/rocker.c
> @@ -3026,11 +3026,17 @@ static void rocker_port_fdb_learn_work(struct work_struct *work)
> container_of(work, struct rocker_fdb_learn_work, work);
> bool removing = (lw->flags & ROCKER_OP_FLAG_REMOVE);
> bool learned = (lw->flags & ROCKER_OP_FLAG_LEARNED);
> + struct netdev_switch_notifier_fdb_info info;
> +
> + info.addr = lw->addr;
> + info.vid = lw->vid;
If you respin patch, use initializer to zero out other members, just
to future proof it.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch net-next 2/2] net: replace br_fdb_external_learn_* calls with switchdev notifier events
2015-01-16 19:32 ` Scott Feldman
@ 2015-01-17 8:31 ` Jiri Pirko
2015-01-17 20:28 ` David Miller
0 siblings, 1 reply; 8+ messages in thread
From: Jiri Pirko @ 2015-01-17 8:31 UTC (permalink / raw)
To: Scott Feldman
Cc: Netdev, David S. Miller, Jamal Hadi Salim, Scott Feldman,
stephen@networkplumber.org, linus.luessing, Thomas Graf
Fri, Jan 16, 2015 at 08:32:34PM CET, sfeldma@gmail.com wrote:
>On Thu, Jan 15, 2015 at 2:49 PM, Jiri Pirko <jiri@resnulli.us> wrote:
>> This patch benefits from newly introduced switchdev notifier and uses it
>> to propagate fdb learn events from rocker driver to bridge. That avoids
>> direct function calls and possible use by other listeners (ovs).
>>
>> Suggested-by: Thomas Graf <tgraf@suug.ch>
>> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
>
>Signed-off-by: Scott Feldman <sfeldma@gmail.com>
>
>> drivers/net/ethernet/rocker/rocker.c | 10 +++++--
>> include/linux/if_bridge.h | 18 -------------
>> include/net/switchdev.h | 11 ++++++++
>> net/bridge/br.c | 52 +++++++++++++++++++++++++++++++++++-
>> net/bridge/br_fdb.c | 38 +++-----------------------
>> net/bridge/br_private.h | 4 +++
>> 6 files changed, 78 insertions(+), 55 deletions(-)
>>
>> diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c
>> index cad8cf9..964d719 100644
>> --- a/drivers/net/ethernet/rocker/rocker.c
>> +++ b/drivers/net/ethernet/rocker/rocker.c
>> @@ -3026,11 +3026,17 @@ static void rocker_port_fdb_learn_work(struct work_struct *work)
>> container_of(work, struct rocker_fdb_learn_work, work);
>> bool removing = (lw->flags & ROCKER_OP_FLAG_REMOVE);
>> bool learned = (lw->flags & ROCKER_OP_FLAG_LEARNED);
>> + struct netdev_switch_notifier_fdb_info info;
>> +
>> + info.addr = lw->addr;
>> + info.vid = lw->vid;
>
>If you respin patch, use initializer to zero out other members, just
>to future proof it.
There are no other members :)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch net-next 2/2] net: replace br_fdb_external_learn_* calls with switchdev notifier events
2015-01-17 8:31 ` Jiri Pirko
@ 2015-01-17 20:28 ` David Miller
0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2015-01-17 20:28 UTC (permalink / raw)
To: jiri; +Cc: sfeldma, netdev, jhs, sfeldma, stephen, linus.luessing, tgraf
From: Jiri Pirko <jiri@resnulli.us>
Date: Sat, 17 Jan 2015 09:31:12 +0100
>>> @@ -3026,11 +3026,17 @@ static void rocker_port_fdb_learn_work(struct work_struct *work)
>>> container_of(work, struct rocker_fdb_learn_work, work);
>>> bool removing = (lw->flags & ROCKER_OP_FLAG_REMOVE);
>>> bool learned = (lw->flags & ROCKER_OP_FLAG_LEARNED);
>>> + struct netdev_switch_notifier_fdb_info info;
>>> +
>>> + info.addr = lw->addr;
>>> + info.vid = lw->vid;
>>
>>If you respin patch, use initializer to zero out other members, just
>>to future proof it.
>
> There are no other members :)
That's why he said "future proof", he knows there are no other members
(currently) too.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch net-next 1/2] switchdev: introduce switchdev notifier
2015-01-15 22:49 [patch net-next 1/2] switchdev: introduce switchdev notifier Jiri Pirko
2015-01-15 22:49 ` [patch net-next 2/2] net: replace br_fdb_external_learn_* calls with switchdev notifier events Jiri Pirko
2015-01-16 19:28 ` [patch net-next 1/2] switchdev: introduce switchdev notifier Scott Feldman
@ 2015-01-18 5:24 ` David Miller
2 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2015-01-18 5:24 UTC (permalink / raw)
To: jiri; +Cc: netdev, jhs, sfeldma, stephen, linus.luessing, tgraf
From: Jiri Pirko <jiri@resnulli.us>
Date: Thu, 15 Jan 2015 23:49:36 +0100
> This patch introduces new notifier for purposes of exposing events which happen
> on switch driver side. The consumers of the event messages are mainly involved
> masters, namely bridge and ovs.
>
> Suggested-by: Thomas Graf <tgraf@suug.ch>
> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Applied.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [patch net-next 2/2] net: replace br_fdb_external_learn_* calls with switchdev notifier events
2015-01-15 22:49 ` [patch net-next 2/2] net: replace br_fdb_external_learn_* calls with switchdev notifier events Jiri Pirko
2015-01-16 19:32 ` Scott Feldman
@ 2015-01-18 5:24 ` David Miller
1 sibling, 0 replies; 8+ messages in thread
From: David Miller @ 2015-01-18 5:24 UTC (permalink / raw)
To: jiri; +Cc: netdev, jhs, sfeldma, stephen, linus.luessing, tgraf
From: Jiri Pirko <jiri@resnulli.us>
Date: Thu, 15 Jan 2015 23:49:37 +0100
> This patch benefits from newly introduced switchdev notifier and uses it
> to propagate fdb learn events from rocker driver to bridge. That avoids
> direct function calls and possible use by other listeners (ovs).
>
> Suggested-by: Thomas Graf <tgraf@suug.ch>
> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Applied.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-01-18 5:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-15 22:49 [patch net-next 1/2] switchdev: introduce switchdev notifier Jiri Pirko
2015-01-15 22:49 ` [patch net-next 2/2] net: replace br_fdb_external_learn_* calls with switchdev notifier events Jiri Pirko
2015-01-16 19:32 ` Scott Feldman
2015-01-17 8:31 ` Jiri Pirko
2015-01-17 20:28 ` David Miller
2015-01-18 5:24 ` David Miller
2015-01-16 19:28 ` [patch net-next 1/2] switchdev: introduce switchdev notifier Scott Feldman
2015-01-18 5:24 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).