From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D00A7A00E6 for ; Tue, 6 Aug 2019 10:46:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B045F1BDF6; Tue, 6 Aug 2019 10:46:10 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 1F4571BDF5 for ; Tue, 6 Aug 2019 10:46:09 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 75DA3337; Tue, 6 Aug 2019 01:46:08 -0700 (PDT) Received: from phil-VirtualBox.shanghai.arm.com (unknown [10.171.20.51]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 73D083F706; Tue, 6 Aug 2019 01:46:06 -0700 (PDT) From: Phil Yang To: dev@dpdk.org, thomas@monjalon.net Cc: jgrajcia@cisco.com, anatoly.burakov@intel.com, ferruh.yigit@intel.com, gavin.hu@arm.com, honnappa.nagarahalli@arm.com, nd@arm.com Date: Tue, 6 Aug 2019 16:45:26 +0800 Message-Id: <1565081126-14432-1-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564655727-4142-1-git-send-email-phil.yang@arm.com> References: <1564655727-4142-1-git-send-email-phil.yang@arm.com> Subject: [dpdk-dev] [PATCH v2] net/memif: fix multi-process malfunctioning device X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- v2: Add descriptions in commit log. v1: Initial version. drivers/net/memif/rte_eth_memif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/memif/rte_eth_memif.c b/drivers/net/memif/rte_eth_memif.c index bcda426..a59f809 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"); -- 2.7.4