Skip to content

Commit b039892

Browse files
committed
docs: add dpdk.yaml example in the readme
1 parent bba2c5e commit b039892

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

Diff for: README.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,29 @@ packets = (
7070
write_pcap("example-udp.pcap", packets)
7171
```
7272

73-
4. Type the following command:
73+
4. Prepare `dpdk.yaml`
74+
75+
```yaml
76+
master_lcore: 0
77+
ports:
78+
# PCI id of your device.
79+
0000:5e:00.1:
80+
# How many CPU cores we utilize.
81+
cores: [10]
82+
83+
```
84+
85+
5. Type the following command:
7486

7587
```bash
7688
dwd dpdk --dpdk-path ./dpdk.yaml --pcap-path ./example-udp.pcap
7789
```
7890

79-
5. Write the desired load in the UI:
91+
6. Write the desired load in the UI:
8092

8193
![](./docs/ui.png)
8294

83-
6. You're awesome!
95+
7. You're awesome!
8496

8597
## Native network stack mode
8698
Native mode utilizes the existing kernel network stack for packet generation/processing. That is, all TCP and UDP sockets are native, performance is increased due to carefully organized code, coroutines and multithreading.

0 commit comments

Comments
 (0)