Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/60517/?format=api
http://patches.dpdk.org/api/patches/60517/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20191004050246.90165-3-ajit.khaparde@broadcom.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20191004050246.90165-3-ajit.khaparde@broadcom.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20191004050246.90165-3-ajit.khaparde@broadcom.com", "date": "2019-10-04T05:02:38", "name": "[02/10] net/bnxt: free default completion ring before VF configuration", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "b675acbaac52191b6ce6bdc6ba3a3d06a299886c", "submitter": { "id": 501, "url": "http://patches.dpdk.org/api/people/501/?format=api", "name": "Ajit Khaparde", "email": "ajit.khaparde@broadcom.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20191004050246.90165-3-ajit.khaparde@broadcom.com/mbox/", "series": [ { "id": 6688, "url": "http://patches.dpdk.org/api/series/6688/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6688", "date": "2019-10-04T05:02:37", "name": "bnxt patchset with bug fixes", "version": 1, "mbox": "http://patches.dpdk.org/series/6688/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/60517/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/60517/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E4D911C1C2;\n\tFri, 4 Oct 2019 07:03:04 +0200 (CEST)", "from rnd-relay.smtp.broadcom.com (unknown [192.19.229.170])\n\tby dpdk.org (Postfix) with ESMTP id 7722E1C199\n\tfor <dev@dpdk.org>; Fri, 4 Oct 2019 07:02:54 +0200 (CEST)", "from mail-irv-17.broadcom.com (mail-irv-17.lvn.broadcom.net\n\t[10.75.242.48])\n\tby rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id AFDDE30C2BA;\n\tThu, 3 Oct 2019 22:01:33 -0700 (PDT)", "from localhost.localdomain (unknown [10.230.30.225])\n\tby mail-irv-17.broadcom.com (Postfix) with ESMTP id B2E4514008C;\n\tThu, 3 Oct 2019 22:02:49 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com AFDDE30C2BA", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com;\n\ts=dkimrelay; t=1570165293;\n\tbh=SOAKI/VKJVcgxtXXaUACyeSVFiwU5QdEHdLu840E7S4=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=URHcjq9h/uExj7EK0THPRO7LwAug8ADOdkaUt9oxnPL6VCy28/9hX/xJzD288ySy7\n\tEMEKuoBN4cKKKW/fTUbW98OSF28mVgXH6Z2aylGOSy1KsT6dmYqfu1JxkmJDLVPNyb\n\tKF/1dCiKWcHOpfQWGzrLK3yf9W1Fx63UM1M1ToMs=", "From": "Ajit Khaparde <ajit.khaparde@broadcom.com>", "To": "dev@dpdk.org", "Cc": "ferruh.yigit@intel.com,\n\tSantoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>", "Date": "Thu, 3 Oct 2019 22:02:38 -0700", "Message-Id": "<20191004050246.90165-3-ajit.khaparde@broadcom.com>", "X-Mailer": "git-send-email 2.20.1 (Apple Git-117)", "In-Reply-To": "<20191004050246.90165-1-ajit.khaparde@broadcom.com>", "References": "<20191004050246.90165-1-ajit.khaparde@broadcom.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 02/10] net/bnxt: free default completion ring\n\tbefore VF configuration", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>\n\nIf the VF resources need to be reconfigured using the\nbnxt_hwrm_func_reserve_vf_resc, make sure that the default completion\nring is freed first before the resources are reserved.\n\nReallocate the ring once the VF resources are configured.\n\nSigned-off-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>\nReviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>\n---\n drivers/net/bnxt/bnxt_ethdev.c | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)", "diff": "diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c\nindex 533c6a07fd..2a9b7e5459 100644\n--- a/drivers/net/bnxt/bnxt_ethdev.c\n+++ b/drivers/net/bnxt/bnxt_ethdev.c\n@@ -662,11 +662,28 @@ static int bnxt_dev_configure_op(struct rte_eth_dev *eth_dev)\n \t\t\treturn -ENOSPC;\n \t\t}\n \n+\t\t/* If a resource has already been allocated - in this case\n+\t\t * it is the async completion ring, free it. Reallocate it after\n+\t\t * resource reservation. This will ensure the resource counts\n+\t\t * are calculated correctly.\n+\t\t */\n+\t\tif (!BNXT_HAS_NQ(bp) && bp->async_cp_ring) {\n+\t\t\tbnxt_disable_int(bp);\n+\t\t\tbnxt_free_cp_ring(bp, bp->async_cp_ring);\n+\t\t}\n+\n \t\trc = bnxt_hwrm_func_reserve_vf_resc(bp, false);\n \t\tif (rc) {\n \t\t\tPMD_DRV_LOG(ERR, \"HWRM resource alloc fail:%x\\n\", rc);\n \t\t\treturn -ENOSPC;\n \t\t}\n+\n+\t\tif (!BNXT_HAS_NQ(bp) && bp->async_cp_ring) {\n+\t\t\trc = bnxt_alloc_async_cp_ring(bp);\n+\t\t\tif (rc)\n+\t\t\t\treturn rc;\n+\t\t\tbnxt_enable_int(bp);\n+\t\t}\n \t} else {\n \t\t/* legacy driver needs to get updated values */\n \t\trc = bnxt_hwrm_func_qcaps(bp);\n", "prefixes": [ "02/10" ] }{ "id": 60517, "url": "