Files
FAT-Allocator/dpdk/examples/pipeline/examples/mirroring.cli

46 lines
1.4 KiB
Plaintext

; SPDX-License-Identifier: BSD-3-Clause
; Copyright(c) 2022 Intel Corporation
# Example command line:
# ./build/examples/dpdk-pipeline -l0-1 -- -s ./examples/pipeline/examples/mirroring.cli
#
# Once the application has started, the command to get the CLI prompt is:
# telnet 0.0.0.0 8086
;
; Pipeline code generation & shared object library build.
;
pipeline codegen ./examples/pipeline/examples/mirroring.spec /tmp/mirroring.c
pipeline libbuild /tmp/mirroring.c /tmp/mirroring.so
;
; List of DPDK devices.
;
; Note: Customize the parameters below to match your setup.
;
mempool MEMPOOL0 buffer 2304 pool 32K cache 256 cpu 0
ethdev 0000:18:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
ethdev 0000:18:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
ethdev 0000:3b:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
ethdev 0000:3b:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
;
; List of pipelines.
;
pipeline PIPELINE0 build lib /tmp/mirroring.so io ./examples/pipeline/examples/ethdev.io numa 0
;
; Initial set of table entries.
;
; The table entries can later be updated at run-time through the CLI commands.
;
pipeline PIPELINE0 mirror session 0 port 1 clone fast truncate 0
pipeline PIPELINE0 mirror session 1 port 2 clone slow truncate 0
pipeline PIPELINE0 mirror session 2 port 3 clone slow truncate 64
pipeline PIPELINE0 mirror session 3 port 0 clone slow truncate 128
;
; Pipelines-to-threads mapping.
;
thread 1 pipeline PIPELINE0 enable