From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH iproute2-next] tc: m_tunnel_key: Add tunnel option support to act_tunnel_key Date: Fri, 6 Jul 2018 10:12:11 -0600 Message-ID: <335540b5-e49e-ba67-0673-d51dee353ca0@gmail.com> References: <20180706001200.29567-1-jakub.kicinski@netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: stephen@networkplumber.org, oss-drivers@netronome.com, netdev@vger.kernel.org, Simon Horman , Pieter Jansen van Vuuren To: Jakub Kicinski Return-path: Received: from mail-pf0-f196.google.com ([209.85.192.196]:34462 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754058AbeGFQLi (ORCPT ); Fri, 6 Jul 2018 12:11:38 -0400 Received: by mail-pf0-f196.google.com with SMTP id e10-v6so8820250pfn.1 for ; Fri, 06 Jul 2018 09:11:38 -0700 (PDT) In-Reply-To: <20180706001200.29567-1-jakub.kicinski@netronome.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 7/5/18 6:12 PM, Jakub Kicinski wrote: > From: Simon Horman > > Allow setting tunnel options using the act_tunnel_key action. > > Options are expressed as class:type:data and multiple options > may be listed using a comma delimiter. > > # ip link add name geneve0 type geneve dstport 0 external > # tc qdisc add dev eth0 ingress > # tc filter add dev eth0 protocol ip parent ffff: \ > flower indev eth0 \ > ip_proto udp \ > action tunnel_key \ > set src_ip 10.0.99.192 \ > dst_ip 10.0.99.193 \ > dst_port 6081 \ > id 11 \ > geneve_opts 0102:80:00800022,0102:80:00800022 \ > action mirred egress redirect dev geneve0 > > Signed-off-by: Simon Horman > Signed-off-by: Pieter Jansen van Vuuren > Reviewed-by: Jakub Kicinski > --- > man/man8/tc-tunnel_key.8 | 12 ++- > tc/m_tunnel_key.c | 177 +++++++++++++++++++++++++++++++++++++++ > 2 files changed, 188 insertions(+), 1 deletion(-) > applied to iproute2-next. Thanks