net/memif: fix multi-process Tx
authorPhil Yang <phil.yang@arm.com>
Tue, 6 Aug 2019 08:45:26 +0000 (16:45 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Aug 2019 09:26:52 +0000 (11:26 +0200)
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 <phil.yang@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
drivers/net/memif/rte_eth_memif.c

index bcda426..a59f809 100644 (file)
@@ -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");