> -----Original Message-----
> From: Qiao, Wenjing <wenjing.q...@intel.com>
> Sent: Wednesday, September 6, 2023 5:34 PM
> To: Zhang, Yuying <yuying.zh...@intel.com>; dev@dpdk.org; Zhang, Qi Z
> <qi.z.zh...@intel.com>; Wu, Jingjing <jingjing...@intel.com>; Xing, Beilei
> <beilei.x...@intel.com>
> Cc: Liu, Mingxia <mingxia....@intel.com>; Qiao, Wenjing
> <wenjing.q...@intel.com>
> Subject: [PATCH v3 1/9] net/cpfl: parse flow parser file in devargs
>
> Add devargs "flow_parser" for rte_flow json parser.
>
> Signed-off-by: Wenjing Qiao <wenjing.q...@intel.com>
> ---
> doc/guides/nics/cpfl.rst | 32 ++++++++++++++++++++++++++++
> drivers/net/cpfl/cpfl_ethdev.c | 38
> +++++++++++++++++++++++++++++++++-
> drivers/net/cpfl/cpfl_ethdev.h | 3 +++
> drivers/net/cpfl/meson.build | 6 ++++++
> 4 files changed, 78 insertions(+), 1 deletion(-)
>
> diff --git a/doc/guides/nics/cpfl.rst b/doc/guides/nics/cpfl.rst
> index c20334230b..7032dd1a1a 100644
> --- a/doc/guides/nics/cpfl.rst
> +++ b/doc/guides/nics/cpfl.rst
> @@ -128,12 +128,24 @@ Runtime Configuration
>
> -a BDF,representor=vf[0-3],representor=c1pf1
>
> +- ``flow_parser`` (default ``not enabled``)
> +
> + The PMD supports using a JSON file to parse rte_flow tokens into low level
> hardware
> + resources defined in a DDP package file.
> +
> + The user can specify the path of json file, for example::
> +
> + -a ca:00.0,flow_parser="refpkg.json"
> +
> + Then the PMD will load json file for device ``ca:00.0``.
> + The parameter is optional.
>
> Driver compilation and testing
> ------------------------------
>
> Refer to the document :doc:`build_and_test` for details.
>
> +Rte flow need to install json-c library.
>
> Features
> --------
> @@ -164,3 +176,23 @@ Hairpin queue
> E2100 Series can loopback packets from RX port to TX port.
> This feature is called port-to-port or hairpin.
> Currently, the PMD only supports single port hairpin.
> +
> +Rte_flow
> +~~~~~~~~~~~~~
> +
> +Rte_flow uses a json file to direct CPF PMD to parse rte_flow tokens into
> +low level hardware resources defined in a DDP package file.
> +
> +#. install json-c library::
> +
> + .. code-block:: console
> +
> + git clone https://github.com/json-c/json-c.git
> + cd json-c
> + git checkout 777dd06be83ef7fac71c2218b565557cd068a714
> +
Json-c is the dependency, we can install by package management tool, such as
apt, can you add that refer?
If we need to install from source code, version number might be better that
commit id.