xref: /dpdk/app/graph/examples/l2fwd.cli (revision 2c7debd93742886380c097b28a58f6a76880afb3)
1; SPDX-License-Identifier: BSD-3-Clause
2; Copyright(c) 2023 Marvell.
3
4;
5; Graph configuration for given usecase
6;
7graph l2fwd coremask 0xff bsz 32 tmo 10 model default pcap_enable 1 num_pcap_pkts 100000 pcap_file /tmp/output.pcap
8
9;
10; Mempools to be attached with ethdev
11;
12mempool mempool0 size 8192 buffers 4000 cache 256 numa 0
13
14;
15; DPDK devices and configuration.
16;
17; Note: Customize the parameters below to match your setup.
18;
19ethdev 0002:01:00.1 rxq 1 txq 8 mempool0
20ethdev 0002:01:00.4 rxq 1 txq 8 mempool0
21ethdev 0002:01:00.6 rxq 1 txq 8 mempool0
22ethdev 0002:02:00.0 rxq 1 txq 8 mempool0
23
24;
25; Rx/Tx port mapping
26;
27ethdev forward 0002:01:00.4 0002:02:00.0
28ethdev forward 0002:01:00.1 0002:01:00.6
29
30;
31; Port-Queue-Core mapping for ethdev_rx node
32;
33ethdev_rx map port 0002:02:00.0 queue 0 core 1
34ethdev_rx map port 0002:01:00.6 queue 0 core 2
35
36;
37; Graph start command to create graph.
38;
39; Note: No more command should come after this.
40;
41graph start
42