From: Phil Yang Date: Tue, 6 Aug 2019 08:45:26 +0000 (+0800) Subject: net/memif: fix multi-process Tx X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9467deff9ddfe08321d893437a569c16a362f4c0;p=dpdk.git net/memif: fix multi-process Tx When working as a secondary process, it uses eth_memif_rx in PMD egress. It should be eth_memif_tx. Fixes: c41a04958b ("net/memif: support multi-process") Signed-off-by: Phil Yang Reviewed-by: Gavin Hu --- diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c index bcda426f2b..a59f809671 100644 --- a/drivers/net/memif/rte_eth_memif.c +++ b/drivers/net/memif/rte_eth_memif.c @@ -1265,7 +1265,7 @@ rte_pmd_memif_probe(struct rte_vdev_device *vdev) eth_dev->dev_ops = &ops; eth_dev->device = &vdev->device; eth_dev->rx_pkt_burst = eth_memif_rx; - eth_dev->tx_pkt_burst = eth_memif_rx; + eth_dev->tx_pkt_burst = eth_memif_tx; if (!rte_eal_primary_proc_alive(NULL)) { MIF_LOG(ERR, "Primary process is missing");