Skip to contentSkip to conversation

doc: add Linux flower support check in TAP guide

PATCH Applied Thomas Monjalon 4 participants 4 messages Sep 20, 2017 – Sep 25, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 doc/guides/nics/tap.rst | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
doc/guides/nics/tap.rst +8 -1
index f3ee95d28..04086b110 100644
@@ -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)
Signature · 1 line
2.14.1
Acked-by on v1 1/1
#1 lore raw
Quoted 29 lines · Thomas Monjalon

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.

---
 doc/guides/nics/tap.rst | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
doc/guides/nics/tap.rst +8 -1
index f3ee95d28..04086b110 100644
@@ -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)
Acked-by on v1 1/1
#2 lore raw
In reply to Thomas Monjalon
Quoted 10 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Wednesday, September 20, 2017 2:03 PM
To: Pascal Mazon <[email protected]>
Cc: [email protected]
Subject: [dpdk-dev] [PATCH] doc: add Linux flower support check in TAP guide

Quoted 5 lines

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.

Acked-by Pascal Mazon Applied
#3 lore raw
Quoted 10 lines · John
Quoted 10 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Wednesday, September 20, 2017 2:03 PM
To: Pascal Mazon <[email protected]>
Cc: [email protected]
Subject: [dpdk-dev] [PATCH] doc: add Linux flower support check in TAP guide

Quoted 5 lines
Quoted 5 lines

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.

Quoted 1 line

Applied to dpdk-next-net/master, thanks.