]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_ether/rte_ethdev.h
ethdev: fix crash with multiprocess
[dpdk.git] / lib / librte_ether / rte_ethdev.h
index 21aa359abd9c5e4d880e5fc442418e7ffe934c6d..725321a4fc17e0888d13dfcdbaf9c942a89981b0 100644 (file)
@@ -1458,12 +1458,12 @@ struct rte_eth_dev {
         * User-supplied functions called from rx_burst to post-process
         * received packets before passing them to the user
         */
-       struct rte_eth_rxtx_callback **post_rx_burst_cbs;
+       struct rte_eth_rxtx_callback *post_rx_burst_cbs[RTE_MAX_QUEUES_PER_PORT];
        /**
         * User-supplied functions called from tx_burst to pre-process
         * received packets before passing them to the driver for transmission.
         */
-       struct rte_eth_rxtx_callback **pre_tx_burst_cbs;
+       struct rte_eth_rxtx_callback *pre_tx_burst_cbs[RTE_MAX_QUEUES_PER_PORT];
        uint8_t attached; /**< Flag indicating the port is attached */
        enum rte_eth_dev_type dev_type; /**< Flag indicating the device type */
 };