On 10/1/2019 5:00 PM, Ferruh Yigit wrote: > On 9/29/2019 3:41 AM, Yasufumi Ogawa wrote: >> Packet processing in secondary process cannot work because rx_pkt_burst >> and tx_pkt_burst in eth_dev are not initialized while probing device. >> This patch is to the initialization. >> >> Signed-off-by: Yasufumi Ogawa <yasufu...@gmail.com> >> --- >> drivers/net/null/rte_eth_null.c | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/drivers/net/null/rte_eth_null.c >> b/drivers/net/null/rte_eth_null.c >> index 0c60d241a..5a2010e3e 100644 >> --- a/drivers/net/null/rte_eth_null.c >> +++ b/drivers/net/null/rte_eth_null.c >> @@ -586,6 +586,13 @@ rte_pmd_null_probe(struct rte_vdev_device *dev) >> /* TODO: request info from primary to set up Rx and Tx */ >> eth_dev->dev_ops = &ops; >> eth_dev->device = &dev->device; >> + if (packet_copy) { >> + eth_dev->rx_pkt_burst = eth_null_copy_rx; >> + eth_dev->tx_pkt_burst = eth_null_copy_tx; >> + } else { >> + eth_dev->rx_pkt_burst = eth_null_rx; >> + eth_dev->tx_pkt_burst = eth_null_tx; >> + } >> rte_eth_dev_probing_finish(eth_dev); >> return 0; >> } >> > > > Reviewed-by: Ferruh Yigit <ferruh.yi...@intel.com>
Fixes: ee27edbe0c10 ("drivers/net: share vdev data to secondary process") Cc: sta...@dpdk.org Applied to dpdk-next-net/master, thanks.