From: Thomas Monjalon Date: Wed, 20 Sep 2017 13:03:13 +0000 (+0200) Subject: doc: add Linux flower support check in TAP guide X-Git-Tag: spdx-start~1879 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=be9e49518100fddebb7ddf927a4ec5ee3c766ea5;p=dpdk.git doc: add Linux flower support check in TAP guide 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 Acked-by: Pascal Mazon Acked-by: John McNamara --- diff --git a/doc/guides/nics/tap.rst b/doc/guides/nics/tap.rst index f3ee95d289..04086b1101 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)