mirror of
https://github.com/openvswitch/ovs
synced 2025-10-15 14:17:18 +00:00
User-Space MPLS actions and matches
This patch implements use-space datapath and non-datapath code to match and use the datapath API set out in Leo Alterman's patch "user-space datapath: Add basic MPLS support to kernel". The resulting MPLS implementation supports: * Pushing a single MPLS label * Poping a single MPLS label * Modifying an MPLS lable using set-field or load actions that act on the label value, tc and bos bit. * There is no support for manipulating the TTL this is considered future work. The single-level push pop limitation is implemented by processing push, pop and set-field/load actions in order and discarding information that would require multiple levels of push/pop to be supported. e.g. push,push -> the first push is discarded pop,pop -> the first pop is discarded This patch is based heavily on work by Ravi K. Cc: Ravi K <rkerur@gmail.com> Reviewed-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -43,6 +43,7 @@ struct ofpbuf {
|
||||
size_t size; /* Number of bytes in use. */
|
||||
|
||||
void *l2; /* Link-level header. */
|
||||
void *l2_5; /* MPLS label stack */
|
||||
void *l3; /* Network-level header. */
|
||||
void *l4; /* Transport-level header. */
|
||||
void *l7; /* Application data. */
|
||||
|
Reference in New Issue
Block a user