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 BB8E8A051C for ; Tue, 11 Feb 2020 12:29:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B410F2BD8; Tue, 11 Feb 2020 12:29:01 +0100 (CET) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id A75931BF8E for ; Tue, 11 Feb 2020 12:29:00 +0100 (CET) Received: by mail-wr1-f65.google.com with SMTP id y11so11897861wrt.6 for ; Tue, 11 Feb 2020 03:29:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9rCTq8h6r/uOZ8H0uf1EMPbWMSajWSJPGTiGDJKChKE=; b=pl8pgYzR7HwpBPT3WmzaP5QAK+ro/HlnwXNrsbVkrQee6+TyYMi+656nSwL3C6xQPe LOaATFJYgqXuklbICUdbxCvX1Qwx5FvJhyTOj+A4+9YWzt9cmFZrh3v636aE3lJijUDW Jzx77wTC5nBCHTOqIpsaGs0qvZZpIoGtYiErk6noBOSL/AdSwhvqqBok6uHK9QSjLax1 WofJ8OmBo6RfbDfijFTWb4cCI5GET1SIVMj7ED9auE0xEHM5Eh0JLrFN3sOncExaq6Dx oahXwcfgGe3fxBaJkNO80eFpJcApdcwRsDlXsppCuSbSeXDV3q+AzoWdDS0hANXG8WV0 m0ng== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=9rCTq8h6r/uOZ8H0uf1EMPbWMSajWSJPGTiGDJKChKE=; b=JEyluLRm8is3N0EavLhCNAPW5F0oKCwkZRHav6zTC/PuVKdVQCOnbsw/Y+Iaut/ua5 UK+bO9ifBY4zjwH5Z1STsJ2pCu+fflcOLQgKe/OsOoDAIFvg2c+JhiY/hv0FD8vr0WlE 84hDFO4kIPSV37tcVY99V7kOL31uArATJ3UJONyebGzE7htXWWYyon7itvupWgOS443C uGMxXzEjjLcVTQSU8Pkj1SeR4TY+D58MjtPnxHLrNzEYj7qhKQrIpE5Ndfc9uZqngjRG DHgr1zsDRoAkPuYgJ49CknqJ52vUChPZVQO/4og625zhH01GAvb9acCa3Asfed58UjMB 5ZWQ== X-Gm-Message-State: APjAAAUtsHfIMf10vZXdBsSwRylC+8Mo9z7WbpAPcmWuj/lp0e0tc8Mh jwSgxrP0R/I3HPfwoRUFpgw= X-Google-Smtp-Source: APXvYqy9hlVVoQyUetkOXhDHnakz9l3MqZbZjinlNhhgf7es+1/imC4tUR7qW3HoI5Ppq/Q7XGtKsw== X-Received: by 2002:adf:eb51:: with SMTP id u17mr8643418wrn.29.1581420540400; Tue, 11 Feb 2020 03:29:00 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id q14sm4814552wrj.81.2020.02.11.03.28.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2020 03:28:59 -0800 (PST) From: luca.boccassi@gmail.com To: Rasesh Mody Cc: dpdk stable Date: Tue, 11 Feb 2020 11:20:31 +0000 Message-Id: <20200211112216.3929-85-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200211112216.3929-1-luca.boccassi@gmail.com> References: <20200211112216.3929-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/bnx2x: support secondary process' has been queued to stable release 19.11.1 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/13/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 8aab34df066f62edb706b58fac3ba978ae854c4c Mon Sep 17 00:00:00 2001 From: Rasesh Mody Date: Fri, 20 Dec 2019 17:41:46 -0800 Subject: [PATCH] net/bnx2x: support secondary process [ upstream commit b0b9fdad24e7808f2fbad01b35f0852109639293 ] Skip the device re-initialization for secondary process. 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.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-02-11 11:17:41.900437069 +0000 +++ 0085-net-bnx2x-support-secondary-process.patch 2020-02-11 11:17:38.524003666 +0000 @@ -1,11 +1,11 @@ -From b0b9fdad24e7808f2fbad01b35f0852109639293 Mon Sep 17 00:00:00 2001 +From 8aab34df066f62edb706b58fac3ba978ae854c4c Mon Sep 17 00:00:00 2001 From: Rasesh Mody Date: Fri, 20 Dec 2019 17:41:46 -0800 Subject: [PATCH] net/bnx2x: support secondary process -Skip the device re-initialization for secondary process. +[ upstream commit b0b9fdad24e7808f2fbad01b35f0852109639293 ] -Cc: stable@dpdk.org +Skip the device re-initialization for secondary process. Signed-off-by: Rasesh Mody ---