xref: /dpdk/examples/pipeline/examples/mirroring.cli (revision 41f5dfcbf973b41d08fdfd2842c0e539edcc4f03)
1; SPDX-License-Identifier: BSD-3-Clause
2; Copyright(c) 2022 Intel Corporation
3
4# Example command line:
5#	./build/examples/dpdk-pipeline -l0-1 -- -s ./examples/pipeline/examples/mirroring.cli
6#
7# Once the application has started, the command to get the CLI prompt is:
8#	telnet 0.0.0.0 8086
9
10;
11; Pipeline code generation & shared object library build.
12;
13pipeline codegen ./examples/pipeline/examples/mirroring.spec /tmp/mirroring.c
14pipeline libbuild /tmp/mirroring.c /tmp/mirroring.so
15
16;
17; List of DPDK devices.
18;
19; Note: Customize the parameters below to match your setup.
20;
21mempool MEMPOOL0 meta 0 pkt 2176 pool 32K cache 256 numa 0
22ethdev 0000:18:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
23ethdev 0000:18:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
24ethdev 0000:3b:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
25ethdev 0000:3b:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
26
27;
28; List of pipelines.
29;
30pipeline PIPELINE0 build lib /tmp/mirroring.so io ./examples/pipeline/examples/ethdev.io numa 0
31
32;
33; Initial set of table entries.
34;
35; The table entries can later be updated at run-time through the CLI commands.
36;
37pipeline PIPELINE0 mirror session 0 port 1 clone fast truncate 0
38pipeline PIPELINE0 mirror session 1 port 2 clone slow truncate 0
39pipeline PIPELINE0 mirror session 2 port 3 clone slow truncate 64
40pipeline PIPELINE0 mirror session 3 port 0 clone slow truncate 128
41
42;
43; Pipelines-to-threads mapping.
44;
45pipeline PIPELINE0 enable thread 1
46