net/mlx5: add more details to flow dump
authorHaifei Luo <haifeil@nvidia.com>
Mon, 31 May 2021 02:22:08 +0000 (05:22 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 8 Jul 2021 20:09:27 +0000 (22:09 +0200)
commit5db9318f76586ea0373dd505f6dba9eb467675ce
treec7f984e1e52725f5dc5034232a6eb7462d69f633
parent1c196da274b82e6f1642bde7b1c407a2066caee1
net/mlx5: add more details to flow dump

Currently the flow dump provides few information about actions
- just the pointers. Add implementations to display details for
counter, modify_hdr and encap_decap actions.

For counter, the regular flow operation query is engaged and
the counter content information is provided, including hits
and bytes values.For modify_hdr, encap_and decap actions,
the information stored in the ipool objects is dumped.

There are the formats of information presented in the dump:
Counter: rec_type,id,hits,bytes
Modify_hdr: rec_type,id,actions_number,actions
Encap_decap: rec_type,id,buf

Signed-off-by: Haifei Luo <haifeil@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.c