xref: /dpdk/examples/pipeline/examples/mirroring.cli (revision 41f5dfcbf973b41d08fdfd2842c0e539edcc4f03)
15e54e2e0SCristian Dumitrescu; SPDX-License-Identifier: BSD-3-Clause
25e54e2e0SCristian Dumitrescu; Copyright(c) 2022 Intel Corporation
35e54e2e0SCristian Dumitrescu
4d5b39b6fSCristian Dumitrescu# Example command line:
5d5b39b6fSCristian Dumitrescu#	./build/examples/dpdk-pipeline -l0-1 -- -s ./examples/pipeline/examples/mirroring.cli
6d5b39b6fSCristian Dumitrescu#
7d5b39b6fSCristian Dumitrescu# Once the application has started, the command to get the CLI prompt is:
8d5b39b6fSCristian Dumitrescu#	telnet 0.0.0.0 8086
9d5b39b6fSCristian Dumitrescu
105e54e2e0SCristian Dumitrescu;
11d5b39b6fSCristian Dumitrescu; Pipeline code generation & shared object library build.
12d5b39b6fSCristian Dumitrescu;
13d5b39b6fSCristian Dumitrescupipeline codegen ./examples/pipeline/examples/mirroring.spec /tmp/mirroring.c
14d5b39b6fSCristian Dumitrescupipeline libbuild /tmp/mirroring.c /tmp/mirroring.so
15d5b39b6fSCristian Dumitrescu
16d5b39b6fSCristian Dumitrescu;
17d5b39b6fSCristian Dumitrescu; List of DPDK devices.
18d5b39b6fSCristian Dumitrescu;
19d5b39b6fSCristian Dumitrescu; Note: Customize the parameters below to match your setup.
205e54e2e0SCristian Dumitrescu;
2102d36ef6SCristian Dumitrescumempool MEMPOOL0 meta 0 pkt 2176 pool 32K cache 256 numa 0
22d5b39b6fSCristian Dumitrescuethdev 0000:18:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
23d5b39b6fSCristian Dumitrescuethdev 0000:18:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
24d5b39b6fSCristian Dumitrescuethdev 0000:3b:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
25d5b39b6fSCristian Dumitrescuethdev 0000:3b:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
265e54e2e0SCristian Dumitrescu
275e54e2e0SCristian Dumitrescu;
28d5b39b6fSCristian Dumitrescu; List of pipelines.
295e54e2e0SCristian Dumitrescu;
30d5b39b6fSCristian Dumitrescupipeline PIPELINE0 build lib /tmp/mirroring.so io ./examples/pipeline/examples/ethdev.io numa 0
315e54e2e0SCristian Dumitrescu
325e54e2e0SCristian Dumitrescu;
33d5b39b6fSCristian Dumitrescu; Initial set of table entries.
34d5b39b6fSCristian Dumitrescu;
35d5b39b6fSCristian Dumitrescu; The table entries can later be updated at run-time through the CLI commands.
365e54e2e0SCristian Dumitrescu;
375e54e2e0SCristian Dumitrescupipeline PIPELINE0 mirror session 0 port 1 clone fast truncate 0
385e54e2e0SCristian Dumitrescupipeline PIPELINE0 mirror session 1 port 2 clone slow truncate 0
395e54e2e0SCristian Dumitrescupipeline PIPELINE0 mirror session 2 port 3 clone slow truncate 64
405e54e2e0SCristian Dumitrescupipeline PIPELINE0 mirror session 3 port 0 clone slow truncate 128
415e54e2e0SCristian Dumitrescu
425e54e2e0SCristian Dumitrescu;
435e54e2e0SCristian Dumitrescu; Pipelines-to-threads mapping.
445e54e2e0SCristian Dumitrescu;
45*41f5dfcbSCristian Dumitrescupipeline PIPELINE0 enable thread 1
46