From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout1.radware.com (mailout1.radware.com [192.115.180.130]) by dpdk.org (Postfix) with ESMTP id BDB162B86; Thu, 2 Mar 2017 10:00:46 +0100 (CET) Received: from localhost.localdomain (176.200.121.202) by ILCAS1.corp.radware.com (176.200.120.121) with Microsoft SMTP Server id 14.3.319.2; Thu, 2 Mar 2017 11:00:44 +0200 From: Ami Sabo To: , CC: , , Ami Sabo Date: Thu, 2 Mar 2017 11:00:40 +0200 Message-ID: <1488445242-8824-1-git-send-email-amis@radware.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488102926-24158-2-git-send-email-amis@radware.com> References: <1488102926-24158-2-git-send-email-amis@radware.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-11.0.0.4179-8.100.1062-22916.006 X-TM-AS-Result: No--1.095600-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No Subject: [dpdk-stable] [PATCH 0/2] Fix virtio-user multi-process crash. X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2017 09:00:47 -0000 The patchset fixes secondary process crash issue when it tries to access virtio-user pmd (e.g. via rte_eth_rx_burst). The crash happens because in virtio_user probing, eth_dev_attach_secondary is not being called, as it does from rte_eth_dev_pci_probe. Therefore, the device is not properly initialized. The patchset contains 2 patches: 1. Export rte_eth_dev_attach_secondary, so non-pci drivers will be allowed to call it. 2. Fix the actual bug by calling the function during virtio_user probe. Ami Sabo (2): lib/librte_ether: export secondary attach function net/virtio-user: fix multi-process issue drivers/net/virtio/virtio_user_ethdev.c | 26 ++++++++++++++++---------- lib/librte_ether/rte_ethdev.c | 6 +++--- lib/librte_ether/rte_ethdev.h | 13 +++++++++++++ lib/librte_ether/rte_ether_version.map | 6 ++++++ 4 files changed, 38 insertions(+), 13 deletions(-) -- 2.7.4