aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ip_pipeline/examples/rss.cli
blob: 29c0a913924bad176a64ebb8bb6628f701382241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
; SPDX-License-Identifier: BSD-3-Clause
; Copyright(c) 2010-2018 Intel Corporation

; This setup demonstrates the usage of NIC Receive Side Scaling (RSS) feature.
; Each NIC splits the input traffic into 4 RX queues, with each of its RX queues
; being handled by a different pipeline:
;
;                                                    +-----------+    +----------+
;                       +--------------------------->|           |    |          |
;                       |       +------------------->| PIPELINE0 +--->|  LINK 0  |--->
;                       |       |     +------------->| (CORE A)  |    |    TX    |
;                       |       |     |     +------->|           |    |          |
;                       |       |     |     |        +-----------+    +----------+
;    +----------+       |       |     |     |
;    |          |-------+       |     |     |
;--->|  LINK 0  |-----------+   |     |     |
;    |    RX    |---------+ |   |     |     |
;    |          |-------+ | |   |     |     |
;    +----------+       | | |   |     |     |        +-----------+    +----------+
;                       | | +---|-----|-----|------->|           |    |          |
;    +----------+       | |     | +---|-----|------->| PIPELINE1 +--->|  LINK 1  |--->
;    |          |-------|-|-----+ |   | +---|------->| (CORE B)  |    |    TX    |
;--->|  LINK 1  |-------|-|-------+   | |   | +----->|           |    |          |
;    |    RX    |-------|-|-------+   | |   | |      +-----------+    +----------+
;    |          |-------|-|-----+ |   | |   | |
;    +----------+       | |     | |   | |   | |
;                       | |     | |   | |   | |
;    +----------+       | |     | |   | |   | |
;    |          |-------|-|-----|-|---+ |   | |
;--->|  LINK 2  |-------|-|-----|-|-----+   | |      +-----------+    +----------+
;    |    RX    |-----+ | +-----|-|---------|-|----->|           |    |          |
;    |          |---+ | |       | +---------|-|----->| PIPELINE2 +--->|  LINK 2  |--->
;    +----------+   | +-|-------|-----------|-|----->| (CORE C)  |    |    TX    |
;                   |   |       |           | | +--->|           |    |          |
;    +----------+   |   |       |           | | |    +-----------+    +----------+
;    |          |---|---|-------|-----------+ | |
;--->|  LINK 3  |---|---|-------|-------------+ |
;    |    RX    |---|---|-------|---------------+
;    |          |---|---|-------|-----------+
;    +----------+   |   |       |           |
;                   |   |       |           |        +-----------+    +----------+
;                   |   +-------|-----------|------->|           |    |          |
;                   |           +-----------|------->| PIPELINE3 +--->|  LINK 3  |--->
;                   +-----------------------|------->| (CORE D)  |    |    TX    |
;                                           +------->|           |    |          |
;                                                    +-----------+    +----------+
;
;

mempool MEMPOOL0 buffer 2304 pool 32K cache 256 cpu 0

link LINK0 dev 0000:02:00.0 rxq 4 128 MEMPOOL0 txq 1 512 promiscuous on rss 0 1 2 3
link LINK1 dev 0000:02:00.1 rxq 4 128 MEMPOOL0 txq 1 512 promiscuous on rss 0 1 2 3
link LINK2 dev 0000:06:00.0 rxq 4 128 MEMPOOL0 txq 1 512 promiscuous on rss 0 1 2 3
link LINK3 dev 0000:06:00.1 rxq 4 128 MEMPOOL0 txq 1 512 promiscuous on rss 0 1 2 3

pipeline PIPELINE0 period 10 offset_port_id 0 cpu 0
pipeline PIPELINE0 port in bsz 32 link LINK0 rxq 0
pipeline PIPELINE0 port in bsz 32 link LINK1 rxq 0
pipeline PIPELINE0 port in bsz 32 link LINK2 rxq 0
pipeline PIPELINE0 port in bsz 32 link LINK3 rxq 0
pipeline PIPELINE0 port out bsz 32 link LINK0 txq 0
pipeline PIPELINE0 table match stub
pipeline PIPELINE0 port in 0 table 0
pipeline PIPELINE0 port in 1 table 0
pipeline PIPELINE0 port in 2 table 0
pipeline PIPELINE0 port in 3 table 0
pipeline PIPELINE0 table 0 rule add match default action fwd port 0

pipeline PIPELINE1 period 10 offset_port_id 0 cpu 0
pipeline PIPELINE1 port in bsz 32 link LINK0 rxq 1
pipeline PIPELINE1 port in bsz 32 link LINK1 rxq 1
pipeline PIPELINE1 port in bsz 32 link LINK2 rxq 1
pipeline PIPELINE1 port in bsz 32 link LINK3 rxq 1
pipeline PIPELINE1 port out bsz 32 link LINK1 txq 0
pipeline PIPELINE1 table match stub
pipeline PIPELINE1 port in 0 table 0
pipeline PIPELINE1 port in 1 table 0
pipeline PIPELINE1 port in 2 table 0
pipeline PIPELINE1 port in 3 table 0
pipeline PIPELINE1 table 0 rule add match default action fwd port 0

pipeline PIPELINE2 period 10 offset_port_id 0 cpu 0
pipeline PIPELINE2 port in bsz 32 link LINK0 rxq 2
pipeline PIPELINE2 port in bsz 32 link LINK1 rxq 2
pipeline PIPELINE2 port in bsz 32 link LINK2 rxq 2
pipeline PIPELINE2 port in bsz 32 link LINK3 rxq 2
pipeline PIPELINE2 port out bsz 32 link LINK2 txq 0
pipeline PIPELINE2 table match stub
pipeline PIPELINE2 port in 0 table 0
pipeline PIPELINE2 port in 1 table 0
pipeline PIPELINE2 port in 2 table 0
pipeline PIPELINE2 port in 3 table 0
pipeline PIPELINE2 table 0 rule add match default action fwd port 0

pipeline PIPELINE3 period 10 offset_port_id 0 cpu 0
pipeline PIPELINE3 port in bsz 32 link LINK0 rxq 3
pipeline PIPELINE3 port in bsz 32 link LINK1 rxq 3
pipeline PIPELINE3 port in bsz 32 link LINK2 rxq 3
pipeline PIPELINE3 port in bsz 32 link LINK3 rxq 3
pipeline PIPELINE3 port out bsz 32 link LINK3 txq 0
pipeline PIPELINE3 table match stub
pipeline PIPELINE3 port in 0 table 0
pipeline PIPELINE3 port in 1 table 0
pipeline PIPELINE3 port in 2 table 0
pipeline PIPELINE3 port in 3 table 0
pipeline PIPELINE3 table 0 rule add match default action fwd port 0

thread 1 pipeline PIPELINE0 enable
thread 2 pipeline PIPELINE1 enable
thread 3 pipeline PIPELINE2 enable
thread 4 pipeline PIPELINE3 enable