examples/pipeline: add l2fwd example
[dpdk.git] / examples / pipeline / examples / l2fwd.cli
1 ; SPDX-License-Identifier: BSD-3-Clause
2 ; Copyright(c) 2020 Intel Corporation
3
4 mempool MEMPOOL0 buffer 2304 pool 32K cache 256 cpu 0
5
6 link LINK0 dev 0000:18:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
7 link LINK1 dev 0000:18:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
8 link LINK2 dev 0000:3b:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
9 link LINK3 dev 0000:3b:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on
10
11 pipeline PIPELINE0 create 0
12
13 pipeline PIPELINE0 port in 0 link LINK0 rxq 0 bsz 32
14 pipeline PIPELINE0 port in 1 link LINK1 rxq 0 bsz 32
15 pipeline PIPELINE0 port in 2 link LINK2 rxq 0 bsz 32
16 pipeline PIPELINE0 port in 3 link LINK3 rxq 0 bsz 32
17
18 pipeline PIPELINE0 port out 0 link LINK0 txq 0 bsz 32
19 pipeline PIPELINE0 port out 1 link LINK1 txq 0 bsz 32
20 pipeline PIPELINE0 port out 2 link LINK2 txq 0 bsz 32
21 pipeline PIPELINE0 port out 3 link LINK3 txq 0 bsz 32
22
23 pipeline PIPELINE0 build ./examples/pipeline/examples/l2fwd.spec
24
25 thread 1 pipeline PIPELINE0 enable