examples/l3fwd-power: check packet types after start
authorGregory Etelson <getelson@nvidia.com>
Tue, 17 Nov 2020 18:49:39 +0000 (20:49 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 22 Nov 2020 17:27:08 +0000 (18:27 +0100)
commit6184a02223722b929ae99dff2ba967626448dd63
treec4bc3f958fd212faf410c70611e39aecb7868f5a
parentfa7ad49e96b5dca8fcb774a27d47593b1b6c1bed
examples/l3fwd-power: check packet types after start

l3fwd-power uses `--parse-ptype' parameter to query egress packets
type.  Before that feature is enabled l3fwd-power verifies PMD ability
to advertise supported packet types with
rte_eth_dev_get_supported_ptypes().

The above ethdev function API contains this note:
"
Better to invoke this API after the device is already started or rx burst
function is decided, to obtain correct supported ptypes.
"

The patch updates code for PMDs that register supported types after
dev_start.

Fixes: 82bea4661626 ("examples/l3fwd-power: add --parse-ptype option")
Cc: stable@dpdk.org
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
examples/l3fwd-power/main.c