Thread (17 messages) 17 messages, 6 authors, 2016-09-01

Re: [PATCH net-next V4 3/4] net/sched: cls_flower: Classify packet in ip tunnels

flat view

From: Jiri Pirko <jiri@resnulli.us>
Date: 2016-08-31 15:12:41

Wed, Aug 31, 2016 at 02:46:23PM CEST, hadarh@mellanox.com wrote:
From: Amir Vadai <redacted>

Introduce classifying by metadata extracted by the tunnel device.
Outer header fields - source/dest ip and tunnel id, are extracted from
the metadata when classifying.

For example, the following will add a filter on the ingress Qdisc of shared
vxlan device named 'vxlan0'. To forward packets with outer src ip
11.11.0.2, dst ip 11.11.0.1 and tunnel id 11. The packets will be
forwarded to tap device 'vnet0' (after metadata is released):

$ filter add dev vxlan0 protocol ip parent ffff: \
   flower \
     enc_src_ip 11.11.0.2 \
     enc_dst_ip 11.11.0.1 \
     enc_key_id 11 \
     dst_ip 11.11.11.1 \
   action tunnel_key release \
   action mirred egress redirect dev vnet0

The action tunnel_key, will be introduced in the next patch in this
series.

Signed-off-by: Amir Vadai <redacted>
Signed-off-by: Hadar Hen Zion <redacted>
---
include/uapi/linux/pkt_cls.h |  11 +++++
net/sched/cls_flower.c       | 101 ++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 110 insertions(+), 2 deletions(-)
<snip>	
	
quoted hunk ↗ jump to hunk
@@ -345,7 +382,6 @@ static int fl_set_key(struct net *net, struct nlattr **tb,
		mask->indev_ifindex = 0xffffffff;
	}
#endif
-
	fl_set_key_val(tb, key->eth.dst, TCA_FLOWER_KEY_ETH_DST,
		       mask->eth.dst, TCA_FLOWER_KEY_ETH_DST_MASK,
		       sizeof(key->eth.dst));

Please remove this hunk. Other than that,

Acked-by: Jiri Pirko <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help