From patchwork Tue Aug 27 08:33:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dirk X-Patchwork-Id: 58030 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 08B7E1C0CA; Tue, 27 Aug 2019 10:33:18 +0200 (CEST) Received: from mail.ud15.udmedia.de (ud15.udmedia.de [194.117.254.55]) by dpdk.org (Postfix) with ESMTP id C235529CB for ; Tue, 27 Aug 2019 10:33:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=ng4t.com; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=k1; bh=lnTmmXhoB0x+4rjzCfQZCdKQNPOsi2CbGhQSLs26lws=; b=qZmxu7 3MsX2UygfP5HXrZ0k8WWX5yU/r34oVGDK2IiGKE7xAFNjXXpBC+0ju0lWSpV7/03 oj1tAY1kX2aJ44moNJjG9Z5TrpRm12ztArrVHZi0fOO/dxDwCfk7b7b6tBb/sccn Tde/TGIF8iZV+Nwn61WaEVAxP6MKMrsnfGKgo= Received: (qmail 17847 invoked from network); 27 Aug 2019 10:33:16 +0200 Received: by mail.ud15.udmedia.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 27 Aug 2019 10:33:16 +0200 X-UD-Smtp-Session: ud15?2p5@Clq3HxWRusUqAoEGAAH5AALgTP/+aBWL From: dirk To: dev@dpdk.org Date: Tue, 27 Aug 2019 10:33:05 +0200 Message-Id: <20190827083306.5643-1-dirk.lenz@ng4t.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 0/1] net/enic: enic driver doesn't work with 2nd process 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" dirk (1): net/enic: enic driver doesn't work with 2nd process. the problem is that the private data structure enic uses pointers to rte_eth_dev and rte_pci_device which are overwritten when a 2nd process starts using this device. given patch removes these two pointers from the private data and uses the correct pointers. For us the given patch works fine on a cisco rack. (we used three processes working concurrently) drivers/net/enic/enic.h | 36 ++++--- drivers/net/enic/enic_clsf.c | 5 +- drivers/net/enic/enic_ethdev.c | 79 ++++++--------- drivers/net/enic/enic_main.c | 177 +++++++++++++++++++--------------- drivers/net/enic/enic_res.c | 7 +- drivers/net/enic/enic_res.h | 6 +- drivers/net/enic/enic_rxtx_vec_avx2.c | 5 +- 7 files changed, 156 insertions(+), 159 deletions(-)