From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shmulik Ladkani Subject: Re: [RFC net-next 0/2] net/sched: cls_flower, act_mirred: VXLAN redirect using TC Date: Mon, 15 Aug 2016 12:50:39 +0300 Message-ID: <20160815125039.07809d54@pixies> References: <20160814140652.15985-1-amir@vadai.me> <20160815071121.GA2024@nanopsycho> <20160815081740.GA19058@office.localdomain> <20160815090804.GB19058@office.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Jiri Pirko , Cong Wang , John Fastabend , Jamal Hadi Salim , Jiri Pirko , Linux Kernel Network Developers , Or Gerlitz , Hadar Har-Zion , Oded Shanoon , Amir Vadai To: Amir Vadai Return-path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:36500 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752635AbcHOJuw (ORCPT ); Mon, 15 Aug 2016 05:50:52 -0400 Received: by mail-wm0-f68.google.com with SMTP id i138so10172716wmf.3 for ; Mon, 15 Aug 2016 02:50:51 -0700 (PDT) In-Reply-To: <20160815090804.GB19058@office.localdomain> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 15 Aug 2016 12:08:04 +0300, amir@vadai.me wrote: > > Any objection to the following? > > # ENCAP rule > tc filter add dev $ETH protocol ip parent ffff: prio 10 \ > flower ip_proto 1 \ > action set_tunnel_key src_ip 11.11.0.1 dst_ip 11.11.0.2 key_id 11 dst_port 4789 \ Ability to control few tun_flags (e.g. TUNNEL_CSUM, TUNNEL_DONT_FRAGMENT) might be useful too. > # DECAP rule > tc filter add dev $VXLAN protocol ip parent ffff: prio 10 \ > flower \ > enc_src_ip 11.11.0.2 enc_dst_ip 11.11.0.1 enc_key_id 11 \ > ip_proto 1 \ You might want to match the tunnel's udp port as well, for symmetry.