1 ; SPDX-License-Identifier: BSD-3-Clause
2 ; Copyright(c) 2020 Intel Corporation
4 ; Example command line:
5 ; ./build/examples/dpdk-pipeline -l0-1 -- -s ./examples/pipeline/examples/meter.cli
7 mempool MEMPOOL0 buffer 2304 pool 32K cache 256 cpu 0
9 link LINK0 dev 0000:18:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
10 link LINK1 dev 0000:18:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
11 link LINK2 dev 0000:3b:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
12 link LINK3 dev 0000:3b:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
14 pipeline PIPELINE0 create 0
16 pipeline PIPELINE0 port in 0 link LINK0 rxq 0 bsz 32
17 pipeline PIPELINE0 port in 1 link LINK1 rxq 0 bsz 32
18 pipeline PIPELINE0 port in 2 link LINK2 rxq 0 bsz 32
19 pipeline PIPELINE0 port in 3 link LINK3 rxq 0 bsz 32
21 pipeline PIPELINE0 port out 0 link LINK0 txq 0 bsz 32
22 pipeline PIPELINE0 port out 1 link LINK1 txq 0 bsz 32
23 pipeline PIPELINE0 port out 2 link LINK2 txq 0 bsz 32
24 pipeline PIPELINE0 port out 3 link LINK3 txq 0 bsz 32
26 pipeline PIPELINE0 build ./examples/pipeline/examples/meter.spec
28 pipeline PIPELINE0 meter profile platinum add cir 46000000 pir 138000000 cbs 1000000 pbs 1000000
29 pipeline PIPELINE0 meter meters from 0 to 15 set profile platinum
31 thread 1 pipeline PIPELINE0 enable