net/sfc/base: fix error code usage in common code
[dpdk.git] / lib / librte_eventdev / rte_eventdev.h
index 9971937..20e7293 100644 (file)
@@ -757,7 +757,8 @@ rte_event_port_count(uint8_t dev_id);
  *   Event device identifier
  * @return
  *   - 0: Success, device started.
- *   - <0: Error code of the driver device start function.
+ *   - -ESTALE : Not all ports of the device are configured
+ *   - -ENOLINK: Not all queues are linked, which could lead to deadlock.
  */
 int
 rte_event_dev_start(uint8_t dev_id);
@@ -904,9 +905,9 @@ rte_event_dev_close(uint8_t dev_id);
  * The generic *rte_event* structure to hold the event attributes
  * for dequeue and enqueue operation
  */
+RTE_STD_C11
 struct rte_event {
        /** WORD0 */
-       RTE_STD_C11
        union {
                uint64_t event;
                /** Event attributes for dequeue or enqueue operation */
@@ -966,7 +967,6 @@ struct rte_event {
                };
        };
        /** WORD1 */
-       RTE_STD_C11
        union {
                uint64_t u64;
                /**< Opaque 64-bit value */