DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [RFC] testpmd: support user-id attribute
@ 2022-07-04  8:24 Eli Britstein
  2022-07-19 20:44 ` Thomas Monjalon
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Britstein @ 2022-07-04  8:24 UTC (permalink / raw)
  To: dev, Thomas Monjalon
  Cc: Slava Ovsiienko, Ori Kam, Asaf Penso, Matan Azrad, Gaetan Rivet,
	Nir Anteby, Eli Britstein

Upon creation of a flow, testpmd assigns it a flow ID. Later, the flow
ID is used for flow operations (query, destroy, dump).

The testpmd application allows to manage flow rules with its IDs.
The flow ID is known only when the flow is created.
In order to prepare a complete sequence of testpmd commands to
copy/paste, the flow IDs must be predictable.

The idea brought here is to allow providing some user-defined ID, chosen
in advance of the effective flow creation.


Example:

testpmd> flow create 0 ingress user_id 0x1234 pattern eth / end actions
count / drop / end
Flow rule #0 created, user-id 0x1234

testpmd> flow destroy 0 user_id rule 0x1234
Flow rule #0 destroyed, user-id 0x1234
Here, "user_id" is a flag that signifies the "rule" ID is the user-id.

The motivation is from OVS. OVS dumps its "rte_flow_create" calls to
the log in testpmd commands syntax. As the flow ID testpmd would assign
is unkwon, it cannot log valid "flow destroy" commands.

With the enhancement described above, valid testpmd commands can be
created in a log to copy/paste to testpmd.
The application's flows sequence can then be played back in testpmd, to
enable enhanced dpdk debug capabilities of the applications's
flows in a controlled environment of testpmd rather than a dynamic, more
difficult to debug environment of the application.

-- 
2.26.2.1730.g385c171


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-02-21 15:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-04  8:24 [dpdk-dev] [RFC] testpmd: support user-id attribute Eli Britstein
2022-07-19 20:44 ` Thomas Monjalon
2022-07-28 14:06   ` Singh, Aman Deep
2022-08-07  7:01     ` Eli Britstein
2023-01-30 10:03       ` Asaf Penso
2023-02-21 10:26         ` Thomas Monjalon
2023-02-21 15:28           ` Singh, Aman Deep

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).