Ciara Power 400d758182 ethdev: check device promiscuous state
The promiscuous enable and disable functions now check the
promiscuous state of the device before checking if the dev_ops
function exists for the device.

This change is necessary to allow sample applications run on
virtual PMDs, as previously -ENOTSUP returned when the promiscuous
enable function was called. This caused the sample application to
fail unnecessarily.

Signed-off-by: Ciara Power <ciara.power@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
2019-10-23 16:43:10 +02:00
..
2019-07-05 15:28:14 +02:00
2019-07-19 00:48:43 +02:00
2019-07-06 10:32:34 +02:00
2019-10-24 02:45:40 +02:00
2019-07-04 23:44:58 +02:00
2019-07-19 00:47:50 +02:00