1 .. SPDX-License-Identifier: BSD-3-Clause
2 Copyright 2020 Mellanox Technologies, Ltd
7 Application for rte_flow performance testing.
8 The application provide the ability to test insertion rate of specific
9 rte_flow rule, by stressing it to the NIC, and calculate the insertion
12 The application offers some options in the command line, to configure
15 After that the application will start producing rules with same pattern
16 but increasing the outer IP source address by 1 each time, thus it will
17 give different flow each time, and all other items will have open masks.
23 The current version has limitations which can be removed in future:
25 * Support outer items up to tunnel layer only.
26 * Single core insertion only.
27 * Only one instance of same action can be added in one rule.
29 The application also provide the ability to measure rte flow deletion rate.
32 Compiling the Application
33 =========================
35 The ``test-flow-perf`` application is compiled as part of the main compilation
36 of the DPDK libraries and tools.
38 Refer to the DPDK Getting Started Guides for details.
41 Running the Application
42 =======================
44 EAL Command-line Options
45 ------------------------
47 Please refer to :doc:`EAL parameters (Linux) <../linux_gsg/linux_eal_parameters>`
48 or :doc:`EAL parameters (FreeBSD) <../freebsd_gsg/freebsd_eal_parameters>` for
49 a list of available EAL command-line options.
52 Flow Performance Options
53 ------------------------
55 The following are the command-line options for the flow performance application.
56 They must be separated from the EAL options, shown in the previous section,
57 with a ``--`` separator:
59 .. code-block:: console
61 sudo ./dpdk-test-flow_perf -n 4 -w 08:00.0 -- --ingress --ether --ipv4 --queue --flows-count=1000000
63 The command line options are:
66 Display a help message and quit.
69 Set the number of needed flows to insert,
70 where 1 <= N <= "number of flows".
71 The default value is 4,000,000.
73 * ``--dump-iterations``
74 Print rates for each iteration of flows.
75 Default iteration is 1,00,000.
78 Enable deletion rate calculations.
83 Set Ingress attribute to all flows attributes.
86 Set Egress attribute to all flows attributes.
89 Set Transfer attribute to all flows attributes.
92 Set group for all flows, where N >= 0.
98 Add Ether item to all flows items, This item have open mask.
101 Add VLAN item to all flows items,
102 This item have VLAN value defined in user_parameters.h
103 under ``VNI_VALUE`` with full mask, default value = 1.
104 Other fields are open mask.
107 Add IPv4 item to all flows items,
108 This item have incremental source IP, with full mask.
109 Other fields are open mask.
112 Add IPv6 item to all flows item,
113 This item have incremental source IP, with full mask.
114 Other fields are open mask.
117 Add TCP item to all flows items, This item have open mask.
120 Add UDP item to all flows items, This item have open mask.
123 Add VXLAN item to all flows items,
124 This item have VNI value defined in user_parameters.h
125 under ``VNI_VALUE`` with full mask, default value = 1.
126 Other fields are open mask.
129 Add VXLAN-GPE item to all flows items,
130 This item have VNI value defined in user_parameters.h
131 under ``VNI_VALUE`` with full mask, default value = 1.
132 Other fields are open mask.
135 Add GRE item to all flows items,
136 This item have protocol value defined in user_parameters.h
137 under ``GRE_PROTO`` with full mask, default protocol = 0x6558 "Ether"
138 Other fields are open mask.
141 Add GENEVE item to all flows items,
142 This item have VNI value defined in user_parameters.h
143 under ``VNI_VALUE`` with full mask, default value = 1.
144 Other fields are open mask.
147 Add GTP item to all flows items,
148 This item have TEID value defined in user_parameters.h
149 under ``TEID_VALUE`` with full mask, default value = 1.
150 Other fields are open mask.
153 Add Meta item to all flows items,
154 This item have data value defined in user_parameters.h
155 under ``META_DATA`` with full mask, default value = 1.
156 Other fields are open mask.
159 Add Tag item to all flows items,
160 This item have data value defined in user_parameters.h
161 under ``META_DATA`` with full mask, default value = 1.
163 Also it have tag value defined in user_parameters.h
164 under ``TAG_INDEX`` with full mask, default value = 0.
165 Other fields are open mask.
171 Add port redirection action to all flows actions.
172 Port redirection destination is defined in user_parameters.h
173 under PORT_ID_DST, default value = 1.
176 Add RSS action to all flows actions,
177 The queues in RSS action will be all queues configured
181 Add queue action to all flows items,
182 The queue will change in round robin state for each flow.
185 The app running with 4 RX queues
186 Flow #0: queue index 0
187 Flow #1: queue index 1
188 Flow #2: queue index 2
189 Flow #3: queue index 3
190 Flow #4: queue index 0
194 Add jump action to all flows actions.
195 Jump action destination is defined in user_parameters.h
196 under ``JUMP_ACTION_TABLE``, default value = 2.
199 Add mark action to all flows actions.
200 Mark action id is defined in user_parameters.h
201 under ``MARK_ID``, default value = 1.
204 Add count action to all flows actions.
207 Add set-meta action to all flows actions.
208 Meta data is defined in user_parameters.h under ``META_DATA``
209 with full mask, default value = 1.
212 Add set-tag action to all flows actions.
213 Meta data is defined in user_parameters.h under ``META_DATA``
214 with full mask, default value = 1.
216 Tag index is defined in user_parameters.h under ``TAG_INDEX``
217 with full mask, default value = 0.
220 Add drop action to all flows actions.
222 * ``--hairpin-queue=N``
223 Add hairpin queue action to all flows actions.
224 The queue will change in round robin state for each flow.
227 The app running with 4 RX hairpin queues and 4 normal RX queues
228 Flow #0: queue index 4
229 Flow #1: queue index 5
230 Flow #2: queue index 6
231 Flow #3: queue index 7
232 Flow #4: queue index 4
235 * ``--hairpin-rss=N``
236 Add hairpin RSS action to all flows actions.
237 The queues in RSS action will be all hairpin queues configured