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 75D2AA04FD; Tue, 14 Jan 2020 05:51:26 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 021551C2AC; Tue, 14 Jan 2020 05:51:26 +0100 (CET) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by dpdk.org (Postfix) with ESMTP id 94A3A1C2AB; Tue, 14 Jan 2020 05:51:24 +0100 (CET) Received: by mail-io1-f65.google.com with SMTP id z193so12403154iof.1; Mon, 13 Jan 2020 20:51:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LvGiV1hBzsNsrZ34gvbc8VebovyiwfGRXaVyfVGwUH4=; b=gdXR9gSFcjg+lCZUgeHqiE3xS1Zy/ca5+t/Iu3umdm5pna4z5Yif7PVP6e1NEK6aac vJMclMjh62ztsG0hNmMzEyv4SrcUhJ19UixtA/3J2R5ok39A/ILDEO5j+gzP94ybjPod mxAqX3Ei7oMwsTA7BlMeePCzNseD5uujlziQ0CWHACOyRkftO5oFTwdJ4PMuu71MAYVY 4ZG8qIzofzcY/8RhPGYcO15rZgQZzA9B+q0VSIWrwfhu78VlJfm74mosSbdJ+1O3dm1/ Ta8lZ7wprHRLrkKwuE57am07Uz4PImq4EMv3geyHo2a/RkzqUPIkrVWiwc21f45ShQeg 9HTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LvGiV1hBzsNsrZ34gvbc8VebovyiwfGRXaVyfVGwUH4=; b=cpR1kLRkOIvkOtzfj1TnnQVffeXLsRQOG66ocmxRLu3EW5EtgrQqiI8q2JCRZiJYMa WA4ghAYhQ180i6LBAxWF1gpYFGdhW8VZ4flYZ/yR8bhba5WJlu+lXa2yWBYUmHu+rSIi gpUorfu0Opbkx31GKNOdi2BnWrDg6rbfgrXW1yH6yNaFUvqSxQO3ORBSynL9UDs4ZxY7 KqBvEZ9zoAyLQZcp/TDBIIdVr9+Z+w7QKrgm9jIpDvbvv3mH5rQQ85TW5DtYE9ZN4VPK VXJ2fXXTJwWKSkQZdiuH2CIiY6BPalgBCrluLPKqYrOfGQERf9PY6nqruy83IiEQcbMS +QsA== X-Gm-Message-State: APjAAAVYOBfHybA3VQScg6nxurcbmKmaYlra1QSFq3CH9v6UCebIw2Ym kiehYkSYT16l3CzoPqjjPTW927fdrDUb9uUVnuA= X-Google-Smtp-Source: APXvYqxEEmrBLhsKsDfW040ZNvj556KQkEftZr20yo0Boktx0YlQAwBegepXGeQYseDO5bqESeefJerierAPv7qcE7E= X-Received: by 2002:a5e:8516:: with SMTP id i22mr16130385ioj.130.1578977483952; Mon, 13 Jan 2020 20:51:23 -0800 (PST) MIME-Version: 1.0 References: <20191221014146.29795-1-rmody@marvell.com> In-Reply-To: <20191221014146.29795-1-rmody@marvell.com> From: Jerin Jacob Date: Tue, 14 Jan 2020 10:21:07 +0530 Message-ID: To: Rasesh Mody , Ferruh Yigit , dpdk stable Cc: dpdk-dev , Jerin Jacob , GR-Everest-DPDK-Dev Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] net/bnx2x: add support for secondary 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" On Sat, Dec 21, 2019 at 7:12 AM Rasesh Mody wrote: > > Skip the device re-initialization for secondary process. > > Cc: stable@dpdk.com Correct Cc: to stable@dpdk.org Applied to dpdk-next-net-mrvl/master. Thanks > Signed-off-by: Rasesh Mody > --- > drivers/net/bnx2x/bnx2x_ethdev.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethdev.c > index 20b045ff87..7864b5b80a 100644 > --- a/drivers/net/bnx2x/bnx2x_ethdev.c > +++ b/drivers/net/bnx2x/bnx2x_ethdev.c > @@ -598,6 +598,11 @@ bnx2x_common_dev_init(struct rte_eth_dev *eth_dev, int is_vf) > > eth_dev->dev_ops = is_vf ? &bnx2xvf_eth_dev_ops : &bnx2x_eth_dev_ops; > > + if (rte_eal_process_type() != RTE_PROC_PRIMARY) { > + PMD_DRV_LOG(ERR, sc, "Skipping device init from secondary process"); > + return 0; > + } > + > rte_eth_copy_pci_info(eth_dev, pci_dev); > > sc->pcie_bus = pci_dev->addr.bus; > -- > 2.18.0 >