From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roman Mashak Subject: Re: [PATCH iproute2/next 1/2] tc/act_tunnel_key: Enable setup of tos and ttl Date: Thu, 19 Jul 2018 07:48:44 -0400 Message-ID: <85fu0fbg4j.fsf@mojatatu.com> References: <1531998135-13395-1-git-send-email-ogerlitz@mellanox.com> <1531998135-13395-2-git-send-email-ogerlitz@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain Cc: David Ahern , netdev@vger.kernel.org To: Or Gerlitz Return-path: Received: from mail-io0-f195.google.com ([209.85.223.195]:41194 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726475AbeGSMbd (ORCPT ); Thu, 19 Jul 2018 08:31:33 -0400 Received: by mail-io0-f195.google.com with SMTP id q9-v6so6790746ioj.8 for ; Thu, 19 Jul 2018 04:48:46 -0700 (PDT) In-Reply-To: <1531998135-13395-2-git-send-email-ogerlitz@mellanox.com> (Or Gerlitz's message of "Thu, 19 Jul 2018 14:02:14 +0300") Sender: netdev-owner@vger.kernel.org List-ID: Or Gerlitz writes: > Allow to set tos and ttl for the tunnel. > > For example, here's encap rule that sets tos to the tunnel: > > 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 > > Signed-off-by: Or Gerlitz > Reviewed-by: Roi Dayan > Acked-by: Jiri Pirko [...] Or, could you also update tunnel_key actions for the new options in $(kernel)/tools/testing/selftests/tc-testing/tc-tests/actions/tunnel_key.json once the patches are accepted ?