From: Pascal Mazon Subject: Re: [PATCH] doc: add Linux flower support check in TAP guide Date: Wed, 20 Sep 2017 15:08:52 +0200 Message-ID: References: <20170920130313.28068-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Thomas Monjalon Return-path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id CB361F94 for ; Wed, 20 Sep 2017 15:08:54 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id v142so7010562wmv.5 for ; Wed, 20 Sep 2017 06:08:54 -0700 (PDT) In-Reply-To: <20170920130313.28068-1-thomas@monjalon.net> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Acked-by: Pascal Mazon On 20/09/2017 15:03, Thomas Monjalon wrote: > The flow API is supported in TAP PMD if flower is supported in Linux. > Some commands are combined to suggest a convenient check of its support > by the running kernel. > > Signed-off-by: Thomas Monjalon > --- > doc/guides/nics/tap.rst | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/doc/guides/nics/tap.rst b/doc/guides/nics/tap.rst > index f3ee95d28..04086b110 100644 > --- a/doc/guides/nics/tap.rst > +++ b/doc/guides/nics/tap.rst > @@ -113,7 +113,14 @@ Flow API support > ---------------- > > The tap PMD supports major flow API pattern items and actions, when running on > -linux kernels above 4.2 ("Flower" classifier required). Supported items: > +linux kernels above 4.2 ("Flower" classifier required). > +The kernel support can be checked with this command:: > + > + zcat /proc/config.gz | ( grep 'CLS_FLOWER=' || echo 'not supported' ) | > + tee -a /dev/stderr | grep -q '=m' && > + lsmod | ( grep cls_flower || echo 'try modprobe cls_flower' ) > + > +Supported items: > > - eth: src and dst (with variable masks), and eth_type (0xffff mask). > - vlan: vid, pcp, tpid, but not eid. (requires kernel 4.9)