Scott James Remnant
2009-Mar-02 16:40 UTC
[Bridge] [PATCH 01/31] bridge: Auto-load bridge module when socket opened.
The bridge module is missing the net-pf-7 alias that would cause it to be auto-loaded when a socket of that type is opened. This patch adds the alias. Signed-off-by: Scott James Remnant <scott at canonical.com> Signed-off-by: Tim Gardner <tim.gardner at canonical.com> --- net/bridge/br.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net/bridge/br.c b/net/bridge/br.c index 4d2c1f1..229daee 100644 --- a/net/bridge/br.c +++ b/net/bridge/br.c @@ -16,6 +16,7 @@ #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/init.h> +#include <linux/net.h> #include <linux/llc.h> #include <net/llc.h> #include <net/stp.h> @@ -108,3 +109,4 @@ module_init(br_init) module_exit(br_deinit) MODULE_LICENSE("GPL"); MODULE_VERSION(BR_VERSION); +MODULE_ALIAS_NETPROTO(PF_BRIDGE); -- 1.6.0.5
Stephen Hemminger
2009-Mar-10 17:26 UTC
[Bridge] [PATCH 01/31] bridge: Auto-load bridge module when socket opened.
On Mon, 2 Mar 2009 16:40:10 +0000 Scott James Remnant <scott at canonical.com> wrote:> The bridge module is missing the net-pf-7 alias that would cause it to > be auto-loaded when a socket of that type is opened. This patch adds > the alias. > > Signed-off-by: Scott James Remnant <scott at canonical.com> > Signed-off-by: Tim Gardner <tim.gardner at canonical.com> > --- > net/bridge/br.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/net/bridge/br.c b/net/bridge/br.c > index 4d2c1f1..229daee 100644 > --- a/net/bridge/br.c > +++ b/net/bridge/br.c > @@ -16,6 +16,7 @@ > #include <linux/netdevice.h> > #include <linux/etherdevice.h> > #include <linux/init.h> > +#include <linux/net.h> > #include <linux/llc.h> > #include <net/llc.h> > #include <net/stp.h> > @@ -108,3 +109,4 @@ module_init(br_init) > module_exit(br_deinit) > MODULE_LICENSE("GPL"); > MODULE_VERSION(BR_VERSION); > +MODULE_ALIAS_NETPROTO(PF_BRIDGE);Hmm. It looks okay, but there is not real direct socket interface for PF_BRIDGE/AF_BRIDGE.
David Miller
2009-Mar-13 21:27 UTC
[Bridge] [PATCH 01/31] bridge: Auto-load bridge module when socket opened.
From: Scott James Remnant <scott at canonical.com> Date: Mon, 2 Mar 2009 16:40:10 +0000> The bridge module is missing the net-pf-7 alias that would cause it to > be auto-loaded when a socket of that type is opened. This patch adds > the alias. > > Signed-off-by: Scott James Remnant <scott at canonical.com> > Signed-off-by: Tim Gardner <tim.gardner at canonical.com>Bridging has no sockets, so this patch won't do anything. Did you verify that these changes actually do something? Or did you blindly run around peppering source files with these annotations?