Thread (16 messages) 16 messages, 8 authors, 2016-09-06

Re: [PATCH net-next V5 4/4] net/sched: Introduce act_tunnel_key

flat view

From: Shmulik Ladkani <hidden>
Date: 2016-09-04 11:21:03

On Sun,  4 Sep 2016 13:55:55 +0300, hadarh@mellanox.com wrote:
From: Amir Vadai <redacted>

This action could be used before redirecting packets to a shared tunnel
device, or when redirecting packets arriving from a such a device.

The action will release the metadata created by the tunnel device
(decap), or set the metadata with the specified values for encap
operation.

For example, the following flower filter will forward all ICMP packets
destined to 11.11.11.2 through the shared vxlan device 'vxlan0'. Before
redirecting, a metadata for the vxlan tunnel is created using the
tunnel_key action and it's arguments:

$ filter add dev net0 protocol ip parent ffff: \
    flower \
      ip_proto 1 \
      dst_ip 11.11.11.2 \
    action tunnel_key set \
      src_ip 11.11.0.1 \
      dst_ip 11.11.0.2 \
      id 11 \
    action mirred egress redirect dev vxlan0

Signed-off-by: Amir Vadai <redacted>
Signed-off-by: Hadar Hen Zion <redacted>
Reviewed-by: Shmulik Ladkani <redacted>

Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help