rawdev: mark start and stop functions optional
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 10 Sep 2020 14:36:08 +0000 (15:36 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 11 Sep 2020 09:51:16 +0000 (11:51 +0200)
commit8c658761de160266796a4cafd572236e632ff823
treed8f395da0c59904468ad595168c10b145946503f
parent13f8e4a27ee5baab0b5778c8e0a3df656a81b87c
rawdev: mark start and stop functions optional

Not all rawdevs will require a device start/stop function, so rather than
requiring such drivers to provide dummy functions, just set the
started/stopped rawdev flag from the rawdev layer and return success.

Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Nipun Gupta <nipun.gupta@nxp.com>
lib/librte_rawdev/rte_rawdev.c