forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: UDP tunnel encapsulation module for tunnelling different protoco…
…ls like MPLS, IP, NSH etc. The Bareudp tunnel module provides a generic L3 encapsulation tunnelling module for tunnelling different protocols like MPLS, IP,NSH etc inside a UDP tunnel. Signed-off-by: Martin Varghese <[email protected]> Acked-by: Willem de Bruijn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
Showing
11 changed files
with
952 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. SPDX-License-Identifier: GPL-2.0 | ||
======================================== | ||
Bare UDP Tunnelling Module Documentation | ||
======================================== | ||
|
||
There are various L3 encapsulation standards using UDP being discussed to | ||
leverage the UDP based load balancing capability of different networks. | ||
MPLSoUDP (__ https://tools.ietf.org/html/rfc7510) is one among them. | ||
|
||
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. | ||
|
||
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 Usage | ||
|
||
The bareudp device could be used along with OVS or flower filter in TC. | ||
The OVS or TC flower layer must set the tunnel information in SKB dst field before | ||
sending packet buffer to the bareudp device for transmission. On reception the | ||
bareudp device extracts and stores the tunnel information in SKB dst field before | ||
passing the packet buffer to the network stack. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ Contents: | |
|
||
netdev-FAQ | ||
af_xdp | ||
bareudp | ||
batman-adv | ||
can | ||
can_ucan_protocol | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.