examples/l3fwd-power: support virtio/vhost
authorMiao Li <miao.li@intel.com>
Mon, 25 Oct 2021 14:47:25 +0000 (14:47 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 29 Oct 2021 10:32:29 +0000 (12:32 +0200)
commitf0b00d983e384137eb3388f9b92b1406de832d69
tree32603a77f6f7154c6141b6b720771a6c1b9c59a4
parentc6e305141a98fe74796cb6da296a554b2706feeb
examples/l3fwd-power: support virtio/vhost

In l3fwd-power, there is default port configuration which requires
RSS and IPv4/UDP/TCP checksum. Once device does not support these,
the l3fwd-power will exit and report an error.
This patch updates the port configuration based on device capabilities
after getting the device information to support devices like virtio
and vhost.

Signed-off-by: Miao Li <miao.li@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
examples/l3fwd-power/main.c