amt: add initial driver for Automatic Multicast Tunneling (AMT)
Subsystems (3)
Taehee Yoo
maintainerPATCH v2 1/1 amt: add initial driver for Automatic Multicast Tunneling (AMT)
This is an implementation of AMT(Automatic Multicast Tunneling), RFC 7450.
https://datatracker.ietf.org/doc/html/rfc7450
This implementation supports IGMPv2, IGMPv3, MLDv1, MLDv2, and IPv4 underlay.
Summary of RFC 7450
The purpose of this protocol is to provide multicast tunneling. The main use-case of this protocol is to provide delivery multicast traffic from a multicast-enabled network to sites that lack multicast connectivity to the source network.
There are two roles in AMT protocol, Gateway, and Relay.
The main purpose of Gateway mode is to forward multicast listening information(IGMP, MLD) to the source.
The main purpose of Relay mode is to forward multicast data to listeners. These multicast traffics(IGMP, MLD, multicast data packets) are tunneled.
Listeners are located behind Gateway endpoint.
But gateway itself can be a listener too.
Senders are located behind Relay endpoint.
___________ _________ _______ ________
| | | | | | | |
| Listeners <-----> Gateway <-----> Relay <-----> Source |
|___________| |_________| |_______| |________|
IGMP/MLD---------(encap)----------->
<-------------(decap)--------(encap)------Multicast Data Usage of AMT interface
1. Create gateway interface
ip link add amtg type amt mode gateway local 10.0.0.1 discovery 10.0.0.2 \
dev gw1_rt gateway_port 2268 relay_port 2268
2. Create Relay interface
ip link add amtr type amt mode relay local 10.0.0.2 dev relay_rt \relay_port 2268 max_tunnels 4
---
v1 -> v2:
- Eliminate sparse warnings
- Use bool type instead of __be16 for identifying v4/v6 protocol.
MAINTAINERS | 8 + drivers/net/Kconfig | 7 + drivers/net/Makefile | 1 + drivers/net/amt.c | 3302 ++++++++++++++++++++++++++++++++++++++ include/net/amt.h | 377 +++++ include/uapi/linux/amt.h | 30 + 6 files changed, 3725 insertions(+) create mode 100644 drivers/net/amt.c create mode 100644 include/net/amt.h create mode 100644 include/uapi/linux/amt.h
MAINTAINERS +8 -0
@@ -1020,6 +1020,14 @@ S: Maintained F: Documentation/devicetree/bindings/iio/light/ams,as73211.yaml F: drivers/iio/light/as73211.c +AMT (Automatic Multicast Tunneling) +M: Taehee Yoo <[email protected]> +L: [email protected] +S: Maintained +T: git git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git +T: git git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git +F: drivers/net/amt.c + ANALOG DEVICES INC AD7192 DRIVER M: Alexandru Tachici <[email protected]> L: [email protected]
drivers/net/Kconfig +7 -0
@@ -291,6 +291,13 @@ config GTP To compile this drivers as a module, choose M here: the module will be called gtp. +config AMT + tristate "Automatic Multicast Tunneling (AMT)" + depends on INET && IP_MULTICAST + select NET_UDP_TUNNEL + help + AMT is an tunneling standard for Multicast. + config MACSEC tristate "IEEE 802.1AE MAC-level encryption (MACsec)" select CRYPTO
drivers/net/Makefile +1 -0
@@ -14,6 +14,7 @@ obj-$(CONFIG_WIREGUARD) += wireguard/ obj-$(CONFIG_EQUALIZER) += eql.o obj-$(CONFIG_IFB) += ifb.o obj-$(CONFIG_MACSEC) += macsec.o +obj-$(CONFIG_AMT) += amt.o obj-$(CONFIG_MACVLAN) += macvlan.o obj-$(CONFIG_MACVTAP) += macvtap.o obj-$(CONFIG_MII) += mii.o
drivers/net/amt.c new file +3302 -0
2,966 lines not on this page · raw message
include/net/amt.h new file +377 -0
377 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.17.1
Part of the diff is not shown here. View the raw message.
Taehee Yoo
maintainerQuoted 5 lines · Taehee Yoo
This is an implementation of AMT(Automatic Multicast Tunneling), RFC 7450.
https://datatracker.ietf.org/doc/html/rfc7450This implementation supports IGMPv2, IGMPv3, MLDv1, MLDv2, and IPv4 underlay.
I will send v3 patch due to warning.
https://patchwork.hopto.org/static/nipa/570103/12583891/build_32bit/summary
Sorry for the noise.
Taehee