[dpdk-dev] [PATCH v3 2/2] net/mlx5: add mlx5 APIs for single flow dump feature

Slava Ovsiienko viacheslavo at nvidia.com
Thu Apr 15 13:28:42 CEST 2021


> -----Original Message-----
> From: Haifei Luo <haifeil at nvidia.com>
> Sent: Thursday, April 15, 2021 14:19
> To: dev at dpdk.org
> Cc: Ori Kam <orika at nvidia.com>; Slava Ovsiienko <viacheslavo at nvidia.com>;
> Raslan Darawsheh <rasland at nvidia.com>; Xueming(Steven) Li
> <xuemingl at nvidia.com>; Haifei Luo <haifeil at nvidia.com>; Matan Azrad
> <matan at nvidia.com>; Shahaf Shuler <shahafs at nvidia.com>
> Subject: [PATCH v3 2/2] net/mlx5: add mlx5 APIs for single flow dump
> feature
> 
> Modify API mlx5_flow_dev_dump to support the feature.
> Modify mlx5_socket since one extra arg flow_ptr is added.
> 
> The data structure sent to DPDK application from the utility triggering the
> flow dumps should be packed and endianness must be specified.
> The native host endianness can be used, all exchange happens within the
> same host (we use sendmsg aux data and share the file handle, remote
> approach is not applicable, no inter-host communication happens).
> 
> The message structure to dump one/all flow(s):
> struct mlx5_flow_dump_req {
> 	uint32_t port_id;
> 	uint64_t flow_ptr;
> } __rte_packed;
> 
> If flow_ptr is 0, all flows for the specified port will be dumped.
> 
> Signed-off-by: Haifei Luo <haifeil at nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>



More information about the dev mailing list