On 10/8/19 2:49 AM, Martin Varghese wrote: > From: Martin <martin.vargh...@nokia.com> > > Signed-off-by: Martin Varghese <martinvargheseno...@gmail.com> > > Signed-off-by: Martin Varghese <martinvargheseno...@gmail.com>
drop one of those. > --- > Documentation/networking/bareudp.txt | 18 ++++++++ > drivers/net/bareudp.c | 82 > +++++++++++++++++++++++++++++++++--- > include/net/bareudp.h | 1 + > include/uapi/linux/if_link.h | 1 + > 4 files changed, 95 insertions(+), 7 deletions(-) > > diff --git a/Documentation/networking/bareudp.txt > b/Documentation/networking/bareudp.txt > index d2530e2..4de1022 100644 > --- a/Documentation/networking/bareudp.txt > +++ b/Documentation/networking/bareudp.txt > @@ -9,6 +9,15 @@ 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) & 0x8847 (multicast). 0x8848 > +IP proctocol can have ethertypes 0x0800 (v4) & 0x866 (v6). > +This special handling can be enabled only for ethertype 0x0800 & 0x88847 > with a > +flag called extended mode. > + > Usage > ------ > > @@ -21,3 +30,12 @@ This creates a bareudp tunnel device which tunnels L3 > traffic with ethertype > 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 end that sentence with a period. (or full stop) > + > +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 -- ~Randy