net/igc: support multi-process
[dpdk.git] / drivers / net / igc / igc_ethdev.c
index b9933b3..7f221a5 100644 (file)
@@ -1240,8 +1240,15 @@ eth_igc_dev_init(struct rte_eth_dev *dev)
         * has already done this work. Only check we don't need a different
         * RX function.
         */
-       if (rte_eal_process_type() != RTE_PROC_PRIMARY)
+       if (rte_eal_process_type() != RTE_PROC_PRIMARY) {
+               dev->rx_pkt_burst = igc_recv_pkts;
+               if (dev->data->scattered_rx)
+                       dev->rx_pkt_burst = igc_recv_scattered_pkts;
+
+               dev->tx_pkt_burst = igc_xmit_pkts;
+               dev->tx_pkt_prepare = eth_igc_prep_pkts;
                return 0;
+       }
 
        rte_eth_copy_pci_info(dev, pci_dev);
        dev->data->dev_flags |= RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS;