lib: work around nonstandard bit-fields
[dpdk.git] / lib / librte_cryptodev / rte_cryptodev.h
index 4c02307..957bdd7 100644 (file)
@@ -67,9 +67,9 @@ enum rte_cryptodev_type {
        RTE_CRYPTODEV_NULL_PMD = 1,     /**< Null crypto PMD */
        RTE_CRYPTODEV_AESNI_GCM_PMD,    /**< AES-NI GCM PMD */
        RTE_CRYPTODEV_AESNI_MB_PMD,     /**< AES-NI multi buffer PMD */
-       RTE_CRYPTODEV_KASUMI_PMD,       /**< KASUMI PMD */
        RTE_CRYPTODEV_QAT_SYM_PMD,      /**< QAT PMD Symmetric Crypto */
        RTE_CRYPTODEV_SNOW3G_PMD,       /**< SNOW 3G PMD */
+       RTE_CRYPTODEV_KASUMI_PMD,       /**< KASUMI PMD */
 };
 
 extern const char **rte_cyptodev_names;
@@ -619,6 +619,7 @@ struct rte_cryptodev {
        struct rte_cryptodev_cb_list link_intr_cbs;
        /**< User application callback for interrupts if present */
 
+       __extension__
        uint8_t attached : 1;
        /**< Flag indicating the device is attached */
 } __rte_cache_aligned;
@@ -642,6 +643,7 @@ struct rte_cryptodev_data {
        char name[RTE_CRYPTODEV_NAME_MAX_LEN];
        /**< Unique identifier name */
 
+       __extension__
        uint8_t dev_started : 1;
        /**< Device state: STARTED(1)/STOPPED(0) */
 
@@ -759,7 +761,7 @@ struct rte_cryptodev_sym_session {
        } __rte_aligned(8);
        /**< Public symmetric session details */
 
-       char _private[0];
+       char _private[];
        /**< Private session material */
 };