net/mlx5: change eth device reference for secondary process
[dpdk.git] / drivers / net / mlx5 / mlx5_trigger.c
index 595a9e0..51c31aa 100644 (file)
  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-/* DPDK headers don't like -pedantic. */
-#ifdef PEDANTIC
-#pragma GCC diagnostic ignored "-Wpedantic"
-#endif
 #include <rte_ether.h>
 #include <rte_ethdev.h>
 #include <rte_interrupts.h>
 #include <rte_alarm.h>
-#ifdef PEDANTIC
-#pragma GCC diagnostic error "-Wpedantic"
-#endif
 
 #include "mlx5.h"
 #include "mlx5_rxtx.h"
@@ -73,8 +66,8 @@ mlx5_dev_start(struct rte_eth_dev *dev)
                return 0;
        }
        /* Update Rx/Tx callback. */
-       priv_select_tx_function(priv);
-       priv_select_rx_function(priv);
+       priv_dev_select_tx_function(priv, dev);
+       priv_dev_select_rx_function(priv, dev);
        DEBUG("%p: allocating and configuring hash RX queues", (void *)dev);
        err = priv_create_hash_rxqs(priv);
        if (!err)