44b3abe86a
1) Imports ENCAP_MPLS labels from IPv4/IPv6 routes. Note that this requires libnl 3.6.0 or newer. In previous patches, the fib_path_ext_t had a path ID of -1. After a long investigation, it turned out to be caused by route weight being set to 0. There is a comment explaining more details. 2) Handles MPLS routes. MPLS routes were wrongly added as IPv4 routes before. POP and SWAP are now both supported. All the routes are installed as NON-EOS and EOS routes, as the Linux kernel does not differentiate. EOS POP used in PHP uses the next-hop address family to determine the resulting address family. This patch is sufficient for P setups. PE setups with implicit null should also function okay, as long as a seperate label gets programmed per address family. PE setups with explicit null will also forward packets, but punting is a bit odd and needs MPLS input enabled on the LCP host device. 3) Propagate MPLS input state to LCP Pair and Linux. Since the Linux kernel uses the MPLS routes itself, the LCP pair tap needs MPLS enabled to allow host originated packets. This also syncs the Linux `net.mpls.conf.<host_if>.input` sysctl to allow punted packets to have MPLS labels, mostly explicit nulls. In addition, a special feature is enabled to cross connect MPLS packets coming from Linux directly to interface-output untouched. Make sure to enable MPLS/add a table in VPP first and load the MPLS kernel modules!! Type: feature Change-Id: Ie4184bb4cc96905bf8b483a27e7ca6d251697374 Signed-off-by: Adrian Pistol <vifino@posteo.net> Signed-off-by: Pim van Pelt <pim@ipng.nl>
28 lines
1.3 KiB
YAML
28 lines
1.3 KiB
YAML
---
|
|
name: Linux Control Plane (integration)
|
|
maintainer: Neale Ranns <neale@grahpiant.com>
|
|
|
|
description: |-
|
|
These plugins provide an integration with the Linux network stack.
|
|
|
|
The "linux_cp" plugin provides the capability to 'mirror' VPP interfaces
|
|
in the Linux kernel. This means that for any interface in VPP the user
|
|
can create a corresponding TAP or TUN device in the Linux kernel
|
|
and have VPP plumb them together.
|
|
The plumbing mechanics is different in each direction.
|
|
In the RX direction, all packets received on a given VPP interface
|
|
that are punted (i.e. are not dropped or forwarded) are transmitted
|
|
on its mirror interface (this includes for example ARP, ND etc,
|
|
so the recommendation is to disable ARP, ND, ping plugin).
|
|
In the TX direction, packets received by VPP an the mirror Tap/Tun
|
|
are cross-connected to the VPP interfaces. For IP packets, IP output
|
|
features are applied.
|
|
If MPLS is enabled on a VPP interface, state is synced to Linux and
|
|
in TX direction a special feature is enabled to pass MPLS packets through
|
|
untouched.
|
|
The "linux_nl" plugin listens to netlink messages and synchronizes the IP
|
|
configuration of the paired interfaces.
|
|
|
|
state: experimental
|
|
properties: [API, CLI, MULTITHREAD]
|