Searched hist:d0f6dd8a914f42c6f1a3a8c08caa16559d3d9a1b (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/include/net/tc_act/ |
H A D | tc_tunnel_key.h | d0f6dd8a914f42c6f1a3a8c08caa16559d3d9a1b Thu Sep 08 08:23:48 CDT 2016 Amir Vadai <amir@vadai.me> net/sched: Introduce act_tunnel_key
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:
$ tc 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 <amir@vadai.me> Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com> Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/openbmc/linux/include/uapi/linux/tc_act/ |
H A D | tc_tunnel_key.h | d0f6dd8a914f42c6f1a3a8c08caa16559d3d9a1b Thu Sep 08 08:23:48 CDT 2016 Amir Vadai <amir@vadai.me> net/sched: Introduce act_tunnel_key
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:
$ tc 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 <amir@vadai.me> Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com> Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/openbmc/linux/net/sched/ |
H A D | Makefile | d0f6dd8a914f42c6f1a3a8c08caa16559d3d9a1b Thu Sep 08 08:23:48 CDT 2016 Amir Vadai <amir@vadai.me> net/sched: Introduce act_tunnel_key
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:
$ tc 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 <amir@vadai.me> Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com> Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | act_tunnel_key.c | d0f6dd8a914f42c6f1a3a8c08caa16559d3d9a1b Thu Sep 08 08:23:48 CDT 2016 Amir Vadai <amir@vadai.me> net/sched: Introduce act_tunnel_key
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:
$ tc 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 <amir@vadai.me> Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com> Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | Kconfig | d0f6dd8a914f42c6f1a3a8c08caa16559d3d9a1b Thu Sep 08 08:23:48 CDT 2016 Amir Vadai <amir@vadai.me> net/sched: Introduce act_tunnel_key
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:
$ tc 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 <amir@vadai.me> Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com> Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|