From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next 0/3] set/match the tos/ttl fields of TC based IP tunnels Date: Thu, 19 Jul 2018 23:26:26 -0700 (PDT) Message-ID: <20180719.232626.643487973216751394.davem@davemloft.net> References: <1531844838-6065-1-git-send-email-ogerlitz@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: ogerlitz@mellanox.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:42090 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbeGTHNG (ORCPT ); Fri, 20 Jul 2018 03:13:06 -0400 In-Reply-To: <1531844838-6065-1-git-send-email-ogerlitz@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Or Gerlitz Date: Tue, 17 Jul 2018 19:27:15 +0300 > This series comes to address the case to set (encap) and match (decap) > also the tos and ttl fields of TC based IP tunnels. > > Example encap (1st one) and decap (2nd) that use the new fields > > tc filter add dev eth0_0 protocol ip parent ffff: prio 10 flower \ > src_mac e4:11:22:33:44:50 dst_mac e4:11:22:33:44:70 \ > action tunnel_key set src_ip 192.168.10.1 dst_ip 192.168.10.2 id 100 dst_port 4789 tos 0x30 \ > action mirred egress redirect dev vxlan_sys_4789 > > tc filter add dev vxlan_sys_4789 protocol ip parent ffff: prio 10 flower \ > enc_src_ip 192.168.10.2 enc_dst_ip 192.168.10.1 enc_key_id 100 enc_dst_port 4789 enc_tos 0x30 \ > src_mac e4:11:22:33:44:70 dst_mac e4:11:22:33:44:50 \ > action tunnel_key unset \ > action mirred egress redirect dev eth0_0 Series applied, thanks Or.