From: Martin Varghese <martinvarghesenokia@gmail.com>
To: netdev@vger.kernel.org, stephen@networkplumber.org,
scott.drennan@nokia.com, jbenc@redhat.com,
martin.varghese@nokia.com
Subject: [PATCH v3 net-next 0/1] Bareudp Device Support
Date: Sat, 16 Nov 2019 11:20:04 +0530 [thread overview]
Message-ID: <cover.1573872856.git.martin.varghese@nokia.com> (raw)
From: Martin Varghese <martin.varghese@nokia.com>
The Bareudp tunnel module provides a generic L3 encapsulation tunnelling
support for tunnelling different L3 protocols like MPLS, IP, NSH etc. inside
a UDP tunnel.
Special Handling
----------------
The bareudp device supports special handling for MPLS & IP as they can have
multiple ethertypes.
MPLS procotcol can have ethertypes 0x8847 (unicast) & 0x8848 (multicast).
IP proctocol can have ethertypes 0x0800 (v4) & 0x86dd (v6).
This special handling can be enabled only for ethertype 0x0800 & 0x8847 with a
flag called extended mode.
Usage
------
1. Device creation & deletion
a. ip link add dev bareudp0 type bareudp dstport 6635 ethertype 0x8847
This creates a bareudp tunnel device which tunnels L3 traffic with ethertype
0x8847 (MPLS traffic). The destination port of the UDP header will be set to 6635
The device will listen on UDP port 6635 to receive traffic.
b. ip link delete bareudp0
2. Device creation with extended mode enabled
There are two ways to create a bareudp device for MPLS & IP with extended mode
enabled.
a. ip link add dev bareudp0 type bareudp dstport 6635 ethertype 0x8847 extmode 1
b. ip link add dev bareudp0 type bareudp dstport 6635 ethertype mpls
Martin Varghese (1):
Bareudp device support
include/uapi/linux/if_link.h | 12 ++++
ip/Makefile | 2 +-
ip/iplink.c | 2 +-
ip/iplink_bareudp.c | 157 +++++++++++++++++++++++++++++++++++++++++++
man/man8/ip-link.8.in | 38 +++++++++++
5 files changed, 209 insertions(+), 2 deletions(-)
create mode 100644 ip/iplink_bareudp.c
--
1.8.3.1
next reply other threads:[~2019-11-16 5:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-16 5:50 Martin Varghese [this message]
2019-11-16 5:50 ` [PATCH v3 net-next 1/1] Bareudp device support Martin Varghese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1573872856.git.martin.varghese@nokia.com \
--to=martinvarghesenokia@gmail.com \
--cc=jbenc@redhat.com \
--cc=martin.varghese@nokia.com \
--cc=netdev@vger.kernel.org \
--cc=scott.drennan@nokia.com \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).