These patches add an implementation of the GARP (Generic Attribute
Registration Protocol) applicant-only participant, which can be used
to dynamically register VLANs and multicast addresses with switches.
Applicant-only means it can only be used as a client, not on a bridge.
Also included is a GVRP (GARP VLAN Registration Protocol) application
on top.
I asked on opinions whether this should be merged a couple of weeks
ago, and Pekka Savola informed me that GARP was considered obsolete
by the IEEE. However, especially GVRP is supported by a huge number
of switches, even very cheap ones, so I think this is still useful
to support.
GARP uses the LLC_SAP_BSPAN LLC, which is also used by STP. Different
multicast addresses are used to distinguish the protocols. Since the
LLC code doesn't allow multiple registrations for the same SAP, a
small mac based demux layer is added that is used by both bridging
and GARP.
GVRP is not enabled by default yet. Since the applicant-only participant
should not be used on a bridge, we first need a reliable way to get
notified when a VLAN device becomes a bridge member. So currently,
the user needs to manually enable it using iproute. I plan to change
this soon.
include/linux/if_vlan.h | 1 +
include/linux/netdevice.h | 2 +
include/net/garp.h | 128 +++++++++
include/net/stp.h | 14 +
net/802/Kconfig | 7 +
net/802/Makefile | 2 +
net/802/garp.c | 633 +++++++++++++++++++++++++++++++++++++++++++++
net/802/stp.c | 102 ++++++++
net/8021q/Kconfig | 10 +
net/8021q/Makefile | 9 +-
net/8021q/vlan.c | 33 ++-
net/8021q/vlan.h | 19 ++-
net/8021q/vlan_dev.c | 32 ++-
net/8021q/vlan_gvrp.c | 66 +++++
net/8021q/vlan_netlink.c | 7 +-
net/Kconfig | 1 +
net/bridge/Kconfig | 1 +
net/bridge/br.c | 16 +-
net/bridge/br_private.h | 5 +-
net/bridge/br_stp_bpdu.c | 12 +-
20 files changed, 1051 insertions(+), 49 deletions(-)
create mode 100644 include/net/garp.h
create mode 100644 include/net/stp.h
create mode 100644 net/802/Kconfig
create mode 100644 net/802/garp.c
create mode 100644 net/802/stp.c
create mode 100644 net/8021q/vlan_gvrp.c
Patrick McHardy (6):
net: Add STP demux layer
bridge: Use STP demux
net: Add GARP applicant-only participant
vlan: Change vlan_dev_set_vlan_flag() to handle multiple flags at once
vlan: Move device unregistration before lower dev cleanup
vlan: Add GVRP support
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
| Trent Piepho | [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Adrian Bunk | 2.6.23-rc4-mm1: mips compile error |
| Nick Piggin | Re: [PATCH 0 of 4] Generic AIO by scheduling stacks |
git: | |
| Bill Lear | Dangers of working on a tracking branch |
| Pedro Melo | Re: git on MacOSX and files with decomposed utf-8 file names |
| Linus Torvalds | Re: kernel.org mirroring (Re: [GIT PULL] MMC update) |
| Junio C Hamano | Re: [Census] So who uses git? |
| Leon Dippenaar | New tcp stack attack |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Chris | sudo & wheel group |
| Paul Moore | [PATCH v7 00/17] Labeled networking patches for 2.6.28 |
| Wang Chen | [PATCH 2/15] netdevice 82596: Convert directly reference of netdev->priv to net... |
| David Miller | [GIT]: Networking |
| Herbert Xu | Re: csum offload and af_packet |
