From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 98C512C0A for ; Fri, 16 Dec 2016 10:17:54 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id c184so12625252wmd.0 for ; Fri, 16 Dec 2016 01:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Jab/N+xTZ6uuMvzQ8/54GYTPEsSp3Hvr/GUGEGhzwc8=; b=XCzJo8EkKvs0R4NJygDc9o37+WeBduD52kQSiw75jeV9KFOxRo30+KVohEtsHE9Xi2 J7lDYmunoGKzAAOey5kIBFfVT2m/ZaDV6RouYU9nn1ZjFVDfTga6dUhqmSysyqjT7xjV U8F26B2Z3N+Zar53g5DQCtLUb5dlavwbzGjoAY9VxURncZUxW4/FxipOBk6/LFqEq/MX 1ZxNboaDILiuDJQzldfbv/NlbEbu7iMXKZFM5khkYXYaeSNOKHr2WZpKe1rslEMdxWe3 MSzFm/RIg9IvlQabQlYoUAm9Dj0sm9qjvZ/KIv3ZKzjWHdlrxreliyzAV9RaGs0LTQIE FAkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Jab/N+xTZ6uuMvzQ8/54GYTPEsSp3Hvr/GUGEGhzwc8=; b=ugm0GePBmByD7e3e4SJCT9al3C7Lvre0UkE15n6NmLXVCpb2tynMlZJGRDcx3Ydlb2 i2buSH+LRgp7OzH/bubcA0PBzmbk2Y97hlTLUXJU47NnWYiwddjZqGMq3H6rkNqBWq3b AVLHi4k12t5lVVZY01pGsDg4rYuNebxZIpcMhAD+A/jYeIc4MggMvrjofcmavDY8DBLk qms9evoNXzirknTH+oCsKkvHGvHuN7Rn2WErjF0uLzJVYs9HOZckJewssEpQPnbMb65u 6mLxix51RIgjUbNkXeiBcZV4ptPE/B3zd7tvyAgwYkfQtIt1DDs9Dg17P5QmqN40Dz8Q 92dg== X-Gm-Message-State: AIkVDXLgf9qIhzek/ng+Pa+1C7wdFIdBWsAlj6DPH5lSfuCnoQYKdAjoXjrmjzYJUlun2e6h X-Received: by 10.28.139.131 with SMTP id n125mr2202063wmd.116.1481879874335; Fri, 16 Dec 2016 01:17:54 -0800 (PST) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id yj10sm5919562wjb.3.2016.12.16.01.17.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Dec 2016 01:17:53 -0800 (PST) Date: Fri, 16 Dec 2016 10:17:46 +0100 From: Adrien Mazarguil To: "Pei, Yulong" Cc: "dev@dpdk.org" , Thomas Monjalon , "De Lara Guarch, Pablo" , Olivier Matz , "Xing, Beilei" Message-ID: <20161216091746.GC10340@6wind.com> References: <2d37e8ee1c613557e94acef94e381b72b2a535ce.1479309720.git.adrien.mazarguil@6wind.com> <188971FCDA171749BED5DA74ABF3E6F03B6625B9@shsmsx102.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <188971FCDA171749BED5DA74ABF3E6F03B6625B9@shsmsx102.ccr.corp.intel.com> Subject: Re: [dpdk-dev] [PATCH 12/22] app/testpmd: add rte_flow item spec handler X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2016 09:17:54 -0000 Hi Yulong, On Fri, Dec 16, 2016 at 03:01:15AM +0000, Pei, Yulong wrote: > Hi Adrien, > > I try to setup the following rule, but it seems that after set 'spec' param, can not set 'mask' param, is it an issue here or am I wrong to use it ? > > testpmd> flow create 0 ingress pattern eth dst spec 00:00:00:00:09:00 > dst [TOKEN]: destination MAC > src [TOKEN]: source MAC > type [TOKEN]: EtherType > / [TOKEN]: specify next pattern item You need to re-specify dst with "mask" instead of "spec". You can specify it as many times you like to update each structure in turn, e.g.: testpmd> flow create 0 ingress pattern eth dst spec 00:00:00:00:09:00 dst mask 00:00:00:00:ff:ff If you want to specify both spec and mask at once assuming you want it full, these commands yield the same result: testpmd> flow create 0 ingress pattern eth dst fix 00:00:00:00:09:00 testpmd> flow create 0 ingress pattern eth dst spec 00:00:00:00:09:00 dst mask ff:ff:ff:ff:ff:ff testpmd> flow create 0 ingress pattern eth dst spec 00:00:00:00:09:00 dst prefix 48 You are even allowed to change your mind: testpmd> flow create 0 ingress pattern eth dst fix 00:00:2a:2a:2a:2a dst fix 00:00:00:00:09:00 All these will be properly documented in the v2 patchset. Note, this version will replace the "fix" keyword with "is" ("fix" made no sense according to feedback). -- Adrien Mazarguil 6WIND