[PATCH v2 00/11] Add support for MPLS routes and encapsulations

Thomas Haller thaller at redhat.com
Fri Aug 18 06:16:58 PDT 2017


On Thu, 2017-08-17 at 15:59 -0700, David Ahern wrote:
> This patch set adds support for the MPLS address family (LSP and
> egress)
> and MPLS encapsulations (ingress to LSP).
> 
> Patches 1, 2 and 8 update or import header files from the kernel
> tree.
> 
> Patch 3 imports mpls_ntop and mpls_pton from iproute2. These are
> known
> working implementations so no since re-inventing those wheels.
> 
> Patch 4 adds support to addr.c for MPLS labels as an nl_addr.
> 
> Patch 5 adds support for routes in the MPLS address family. MPLS uses
> 2 new address attributes - RTA_NEWDST and RTA_VIA - per nexthop.
> RTA_NEWDST is the label stack to be applied on a forward and RTA_VIA
> is the nexthop for the packet (e.g., an IPv4 or IPv6 address).
> 
> Patch 6 adds support for TTL propagation attribute per route. This
> attribute sets whether the TTL is propagated on tunnel egress.
> 
> Patch 7 adds support for MPLS labels to the commands under src. The
> 'as' keyword is added as a nexthop option where the value is one or
> more labels (NEWDST to attribute). The via keyword is updated to use
> RTA_VIA if the route is added or deleted to the MPLS family.
> 
> Patch 9 adds support for lwtunnel encapsulation as a generic
> framework
> with Patch 10 adding MPLS encapsulation support.
> 
> Patch 11 adds support for MPLS encap to the commands under src
> 
> v2
> - Address Thomas' feedback:
>   - moved mpls.h to netlink-private
>   - limited the ROUTE_ATTR_PRIO change to just not setting the attr
>     bit in the mask by default for MPLS
>   - fixed mask for ROUTE_ATTR_TTL_PROPAGATE
>   - add rtnl_route_get_ttl_propagate
>   - Added free of encap private data if the encap is changed on a nh
> 


Hi David,

merged v2 unmodified as
https://github.com/thom311/libnl/commit/27c404ab71f6ad6e3cd46f9a1f0dc3cc00653da8

(including two minor patches from my side)


Thanks!!
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20170818/f8cee3f2/attachment.sig>


More information about the libnl mailing list