From 87d24db65facb89ca524c951b8379ca2ec4dbc7a Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Wed, 4 Dec 2019 17:19:12 -0500 Subject: classify: vpp packet tracer support Configure n-tuple classifier filters which apply to the vpp packet tracer. Update the documentation to reflect the new feature. Add a test vector. Type: feature Signed-off-by: Dave Barach Change-Id: Iefa911716c670fc12e4825b937b62044433fec36 --- docs/gettingstarted/developers/vnet.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'docs/gettingstarted') diff --git a/docs/gettingstarted/developers/vnet.md b/docs/gettingstarted/developers/vnet.md index a5cd9e73594..d9bd7b54de7 100644 --- a/docs/gettingstarted/developers/vnet.md +++ b/docs/gettingstarted/developers/vnet.md @@ -526,10 +526,10 @@ These commands have the following optional parameters: ## packet trace capture filtering -The "classify filter pcap | " debug CLI command +The "classify filter pcap | | trace" debug CLI command constructs an arbitrary set of packet classifier tables for use with "pcap rx | tx | drop trace," and with the vpp packet tracer on a -per-interface basis. +per-interface or system-wide basis. Packets which match a rule in the classifier table chain will be traced. The tables are automatically ordered so that matches in the @@ -575,10 +575,17 @@ Note that per-interface capture filters are _always_ applied. pcap trace tx max 100 filter ``` +### Configure a vpp packet tracer filter + +``` + classify filter trace mask l3 ip4 src dst match l3 ip4 src 192.168.1.10 dst 192.168.2.10 + trace add dpdk-input 100 filter +``` + ### Clear all current classifier filters ``` - classify filter del + classify filter [pcap | | trace] del ``` ### To inspect the classifier tables -- cgit 1.2.3-korg