rte_free(eth_dev->data->mac_addrs);
eth_dev->data->mac_addrs = NULL;
+ eth_dev->rx_pkt_burst = NULL;
+
return 0;
}
PMD_INIT_FUNC_TRACE();
+ eth_dev->rx_pkt_burst = &lio_dev_recv_pkts;
+
/* Primary does the initialization. */
if (rte_eal_process_type() != RTE_PROC_PRIMARY)
return 0;
lio_dev_err(lio_dev,
"MAC addresses memory allocation failed\n");
eth_dev->dev_ops = NULL;
+ eth_dev->rx_pkt_burst = NULL;
return -ENOMEM;
}