From 738c76a503f4e3162b6c1de23c89347df897c963 Mon Sep 17 00:00:00 2001 From: Kumar Amber Date: Wed, 11 May 2022 13:34:12 +0530 Subject: dpcls: Change info-get function to fetch dpcls usage stats. Modified the dplcs info-get command output to include the count for different dpcls implementations. $ovs-appctl dpif-netdev/subtable-lookup-info-get Available dpcls implementations: autovalidator (Use count: 1, Priority: 5) generic (Use count: 0, Priority: 1) avx512_gather (Use count: 0, Priority: 3) Test case to verify changes: 1061: PMD - dpcls configuration ok Signed-off-by: Kumar Amber Signed-off-by: Harry van Haaren Signed-off-by: Eelco Chaudron Co-authored-by: Harry van Haaren Co-authored-by: Eelco Chaudron Acked-by: Eelco Chaudron Signed-off-by: Ian Stokes --- Documentation/topics/dpdk/bridge.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'Documentation') diff --git a/Documentation/topics/dpdk/bridge.rst b/Documentation/topics/dpdk/bridge.rst index ceee91015..1f626c7c2 100644 --- a/Documentation/topics/dpdk/bridge.rst +++ b/Documentation/topics/dpdk/bridge.rst @@ -179,11 +179,11 @@ these CPU ISA additions are available, and to allow the user to enable them. OVS provides multiple implementations of dpcls. The following command enables the user to check what implementations are available in a running instance:: - $ ovs-appctl dpif-netdev/subtable-lookup-prio-get - Available lookup functions (priority : name) - 0 : autovalidator - 1 : generic - 0 : avx512_gather + $ ovs-appctl dpif-netdev/subtable-lookup-info-get + Available dpcls implementations: + autovalidator (Use count: 1, Priority: 5) + generic (Use count: 0, Priority: 1) + avx512_gather (Use count: 0, Priority: 3) To set the priority of a lookup function, run the ``prio-set`` command:: @@ -195,11 +195,11 @@ above indicates that one subtable of one DPCLS port is has changed its lookup function due to the command being run. To verify the prioritization, re-run the get command, note the updated priority of the ``avx512_gather`` function:: - $ ovs-appctl dpif-netdev/subtable-lookup-prio-get - Available lookup functions (priority : name) - 0 : autovalidator - 1 : generic - 5 : avx512_gather + $ ovs-appctl dpif-netdev/subtable-lookup-info-get + Available dpcls implementations: + autovalidator (Use count: 1, Priority: 5) + generic (Use count: 0, Priority: 1) + avx512_gather (Use count: 0, Priority: 3) If two lookup functions have the same priority, the first one in the list is chosen, and the 2nd occurance of that priority is not used. Put in logical -- cgit v1.2.1