From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id D301A5599 for ; Fri, 14 Apr 2017 14:13:51 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id w64so129918586wma.0 for ; Fri, 14 Apr 2017 05:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=M2JbjX32pUA0HCJBltnDkPXqtyP/drho3Lz1tPTYINw=; b=h3r4I4bfzuMsLUsuQYTkDuVpPmbupW6UjVmIznWyeB81rMAEdKj5useYR9vve6y9Qg 2k8VgWZIi4on9J3Ta55E4Yi82qVel3Dx8ijeBPeqHzt9TlZQtxqK4z6/oxc1Iv9QNUG5 fGF3uMQjKXSiq7M4Pcj/Q5wH5CMaqk6n347Spw9OHUDgmB32TYJAuLJJ2+w/2DpmZF2t OeiIfja1bwxhEu9XigDMssuxECQ2okyw2FKWBVRofefFgoj1XOMyOcuKKLVo3DN6agrv uoPieBv39Dpw2ApA2k9+wLeV06afpSFE4WOUHH4z6qBTn6/gxoAgL4upo0nH/ZQs3Ur9 VduA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=M2JbjX32pUA0HCJBltnDkPXqtyP/drho3Lz1tPTYINw=; b=t2Jk+jZXGuhJ0xyv2BNsiVFQ2D+8oC3imeMFJuFNMm9z3ibsKfuS7zrXshBQloj7DC npU/Jm2G+SHyGp6XmA+CzjogNLZZqTJeX5iDCwS+wkbwFz3CRL8S0i59JssJvCy4HBDe OCNuAxzwt3bWmIrwjjzmlMJqoFKLdnOh/179WMxiyt849sKwV41GiyjBCH1QJH7vFyHC 9cSJk7tcNro0AbuWFVCXDlvzx1idWUn4xGnCbOerdcre0HQXIOjh11QN01b7X9fAD9pb j38CpXalBrTTpqai0pabDQgUN2g7WWtYcW97WNzhBuEGpc+rjBhlSLQuuJdV/nngQ5TY QTMw== X-Gm-Message-State: AN3rC/5O1HnhXw/YfbhrfNPzBld8WSzjaiAXyIjSIROPauUd9TPTP48s MI+oAmO558Gs9uq/ X-Received: by 10.28.13.66 with SMTP id 63mr7429173wmn.2.1492172031374; Fri, 14 Apr 2017 05:13:51 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id b73sm2151671wrd.29.2017.04.14.05.13.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Apr 2017 05:13:50 -0700 (PDT) From: Thomas Monjalon To: Ami Sabo Cc: yuanhan.liu@linux.intel.com, dev@dpdk.org, stable@dpdk.org Date: Fri, 14 Apr 2017 14:13:49 +0200 Message-ID: <15073510.99sBIpKQD2@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1488445242-8824-1-git-send-email-amis@radware.com> References: <1488102926-24158-2-git-send-email-amis@radware.com> <1488445242-8824-1-git-send-email-amis@radware.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [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: Fri, 14 Apr 2017 12:13:52 -0000 2017-03-02 11:00, Ami Sabo: > 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 Applied, thanks