From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH iproute2-next] tc: f_flower: add geneve option match support to flower Date: Tue, 2 Oct 2018 15:44:15 -0600 Message-ID: References: <20180928140339.2851-1-simon.horman@netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Jiri Pirko , Jamal Hadi Salim , Cong Wang , netdev@vger.kernel.org, oss-drivers@netronome.com, Pieter Jansen van Vuuren To: Simon Horman Return-path: Received: from mail-pf1-f193.google.com ([209.85.210.193]:39459 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726862AbeJCE3n (ORCPT ); Wed, 3 Oct 2018 00:29:43 -0400 Received: by mail-pf1-f193.google.com with SMTP id c25-v6so292966pfe.6 for ; Tue, 02 Oct 2018 14:44:18 -0700 (PDT) In-Reply-To: <20180928140339.2851-1-simon.horman@netronome.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 9/28/18 8:03 AM, Simon Horman wrote: > From: Pieter Jansen van Vuuren > > Allow matching on options in Geneve tunnel headers. > > The options can be described in the form > CLASS:TYPE:DATA/CLASS_MASK:TYPE_MASK:DATA_MASK, where CLASS is > represented as a 16bit hexadecimal value, TYPE as an 8bit > hexadecimal value and DATA as a variable length hexadecimal value. > > e.g. > # ip link add name geneve0 type geneve dstport 0 external > # tc qdisc add dev geneve0 ingress > # tc filter add dev geneve0 protocol ip parent ffff: \ > flower \ > enc_src_ip 10.0.99.192 \ > enc_dst_ip 10.0.99.193 \ > enc_key_id 11 \ > geneve_opts 0102:80:1122334421314151/ffff:ff:ffffffffffffffff \ > ip_proto udp \ > action mirred egress redirect dev eth1 > > Signed-off-by: Pieter Jansen van Vuuren > Signed-off-by: Simon Horman > --- > man/man8/tc-flower.8 | 13 ++- > tc/f_flower.c | 282 +++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 294 insertions(+), 1 deletion(-) applied to iproute2-next. Thanks