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 7810F2B88; Sun, 26 Feb 2017 10:55:30 +0100 (CET) Received: from localhost.localdomain (176.200.121.203) by ILCAS1.corp.radware.com (176.200.120.121) with Microsoft SMTP Server id 14.3.319.2; Sun, 26 Feb 2017 11:55:28 +0200 From: Ami Sabo To: CC: , , Ami Sabo Date: Sun, 26 Feb 2017 11:55:24 +0200 Message-ID: <1488102926-24158-1-git-send-email-amis@radware.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1487851096-32479-1-git-send-email-amis@radware.com> References: <1487851096-32479-1-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-22908.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-dev] [PATCH 0/2] Fix virtio-user multi-process crash. 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: , X-List-Received-Date: Sun, 26 Feb 2017 09:55:31 -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 | 7 +++++++ 4 files changed, 39 insertions(+), 13 deletions(-) -- 2.7.4