net/ice: add DDP runtime configuration dump
authorSteve Yang <stevex.yang@intel.com>
Fri, 10 Jun 2022 01:14:26 +0000 (01:14 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 23 Jun 2022 05:49:40 +0000 (07:49 +0200)
commit8eedf416a7243007fe4ad3b4f7f52e174423897b
treee9fa1e93c6e4daf2db96f1508651135ad038030e
parent3d6502ee01a92f445f84af6e0660c5a0044acc35
net/ice: add DDP runtime configuration dump

Dump DDP runtime configure into a binary (package) file from ice PF port.

Add command line:
    ddp dump <port_id> <config_path>

Parameters:
    <port_id>       the PF Port ID
    <config_path>   dumped runtime configure file, if not a absolute path,
                    it will be dumped to testpmd running directory.

For example:
testpmd> ddp dump 0 current.pkg

If you want to dump ice VF DDP runtime configure, you need bind other
unused PF port of the NIC first, and then dump the PF's runtime configure
as target output.

Signed-off-by: Steve Yang <stevex.yang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_ddp_package.c [new file with mode: 0644]
drivers/net/ice/ice_ethdev.c
drivers/net/ice/ice_ethdev.h
drivers/net/ice/ice_testpmd.c [new file with mode: 0644]
drivers/net/ice/meson.build
drivers/net/ice/rte_pmd_ice.h
drivers/net/ice/version.map