Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/136546/?format=api
http://patches.dpdk.org/api/patches/136546/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240208171330.31139-5-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": "<20240208171330.31139-5-ajit.khaparde@broadcom.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20240208171330.31139-5-ajit.khaparde@broadcom.com", "date": "2024-02-08T17:13:27", "name": "[4/7] net/bnxt: cleanup vnic ref count", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "1fc191f3b044d5b7cd180b13057b6fc777b1a7b0", "submitter": { "id": 501, "url": "http://patches.dpdk.org/api/people/501/?format=api", "name": "Ajit Khaparde", "email": "ajit.khaparde@broadcom.com" }, "delegate": { "id": 1766, "url": "http://patches.dpdk.org/api/users/1766/?format=api", "username": "ajitkhaparde", "first_name": "Ajit", "last_name": "Khaparde", "email": "ajit.khaparde@broadcom.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240208171330.31139-5-ajit.khaparde@broadcom.com/mbox/", "series": [ { "id": 31055, "url": "http://patches.dpdk.org/api/series/31055/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31055", "date": "2024-02-08T17:13:23", "name": "bnxt bug fixes", "version": 1, "mbox": "http://patches.dpdk.org/series/31055/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/136546/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/136546/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 1A47B43AE1;\n\tThu, 8 Feb 2024 18:14:04 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DF73242E63;\n\tThu, 8 Feb 2024 18:13:44 +0100 (CET)", "from mail-pf1-f176.google.com (mail-pf1-f176.google.com\n [209.85.210.176])\n by mails.dpdk.org (Postfix) with ESMTP id D9F7340273\n for <dev@dpdk.org>; Thu, 8 Feb 2024 18:13:42 +0100 (CET)", "by mail-pf1-f176.google.com with SMTP id\n d2e1a72fcca58-6d9f94b9186so52144b3a.0\n for <dev@dpdk.org>; Thu, 08 Feb 2024 09:13:42 -0800 (PST)", "from C02GC2QQMD6T.wifi.broadcom.net ([192.19.223.252])\n by smtp.gmail.com with ESMTPSA id\n p15-20020aa79e8f000000b006e0527ffe88sm3966204pfq.213.2024.02.08.09.13.40\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 08 Feb 2024 09:13:40 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=broadcom.com; s=google; t=1707412422; x=1708017222; darn=dpdk.org;\n h=mime-version:references:in-reply-to:message-id:date:subject:cc:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=dly0MEkgCBsHlqOFaZT+sNc9znn4AWPiGFTD3r/FLCE=;\n b=PNIXefENpfCenzIXSVvY/nyRO3pFqkK8UGwtPP4xioIwhoKD/v2xpRgOaNL2AY2+Wi\n /Tk1vrt/9+dYZyb4FEpR+lllwfe6KyKGnbSGz5zBLdBzHM+K3VyIyPzSHCM7BwM0h+iG\n 1YOnTTes22Vuo9Vnq4U4ZgA9+xpZQGWbs74WM=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1707412422; x=1708017222;\n h=mime-version:references:in-reply-to:message-id:date:subject:cc:to\n :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;\n bh=dly0MEkgCBsHlqOFaZT+sNc9znn4AWPiGFTD3r/FLCE=;\n b=WP7k2QmJ5yP1TV8ev7DqmMl2sUo4qOVhzp4sWVqnYzywaez6ysOm/r5m5L2FTmqRlY\n VWa/yOwJuFpfpntQs3uKrt7L5/IUqMkeJAhPv4rkCWcfkvtnno8Im+K3fPKhvioyNrPI\n 9he9M4XtVx/f9t5r8gh1iCOMDSPF2u0wuyZ6Lrmuo8HmbyhW4OuRm836XmciqUMJsrb5\n 12uJsxdNm2RA1onARgaQvE769FrzXG71V4zm/om3fB8fLpFNgf8wKUU6b0nKc5umOQ7s\n LHLiaxlmwZB1DQCpkSaenazioEOkFqTe5K8VeLjtNnDRNDim1kJ8aRQDGkTawRRHzR3L\n lUgw==", "X-Gm-Message-State": "AOJu0YxRz57HW3e4AkphVLF61JPnS7r4iIqt1iZLKMprvS5Jf/CFcIcY\n +0C8P4dJgQovbi6Y1IodqM1cKBOSWTsg0eXFQLPGYDT9UQojsu9OG8zTruPIKjA+9gObZBxNza3\n GZPhNM8gumdSV0fmLe2aH8Xn0N3EVNZ6nslycUUewZ3gcnnJuiK7Yh3HlVtY6EejX0CS+qhIxDw\n p8BIY9bgMH4s+M4ihwbJxvIwrmwaU4", "X-Google-Smtp-Source": "\n AGHT+IGe5KQHy/vemi/M9W66LmHoBxi219+XrMCENUecv38t6+qb5NEhNVvPWfJtm8YwuAh2psAIPA==", "X-Received": "by 2002:aa7:85d6:0:b0:6e0:35e9:a78e with SMTP id\n z22-20020aa785d6000000b006e035e9a78emr6316997pfn.21.1707412421028;\n Thu, 08 Feb 2024 09:13:41 -0800 (PST)", "From": "Ajit Khaparde <ajit.khaparde@broadcom.com>", "To": "dev@dpdk.org", "Cc": "Damodharam Ammepalli <damodharam.ammepalli@broadcom.com>", "Subject": "[PATCH 4/7] net/bnxt: cleanup vnic ref count", "Date": "Thu, 8 Feb 2024 09:13:27 -0800", "Message-Id": "<20240208171330.31139-5-ajit.khaparde@broadcom.com>", "X-Mailer": "git-send-email 2.39.2 (Apple Git-143)", "In-Reply-To": "<20240208171330.31139-1-ajit.khaparde@broadcom.com>", "References": "<20240208171330.31139-1-ajit.khaparde@broadcom.com>", "MIME-Version": "1.0", "Content-Type": "multipart/signed; protocol=\"application/pkcs7-signature\";\n micalg=sha-256; boundary=\"000000000000e892500610e1ee49\"", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "From: Damodharam Ammepalli <damodharam.ammepalli@broadcom.com>\n\nCleanup vnic ref count when port is stopped.\nWhen vlan strip is set/unset the current active\nvnics are destroyed and recreated with VNIC id\nprovided by firmware. The default vnic at index 0\nstill has ref_cnt=1 while rx_queues are reset to 0,\nwhich fails the check under bnxt_vnic_rss_action_free()\n\nResetting the vnic->ref_cnt in bnxt_free_all_hwrm_resources()\npost FW handshake in clean-up path.\n\nSigned-off-by: Damodharam Ammepalli <damodharam.ammepalli@broadcom.com>\nReviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>\n---\n drivers/net/bnxt/bnxt_hwrm.c | 2 ++\n 1 file changed, 2 insertions(+)", "diff": "diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c\nindex 397b4a0e05..1d523d6dec 100644\n--- a/drivers/net/bnxt/bnxt_hwrm.c\n+++ b/drivers/net/bnxt/bnxt_hwrm.c\n@@ -3584,6 +3584,8 @@ void bnxt_free_all_hwrm_resources(struct bnxt *bp)\n \n \t\trte_free(vnic->fw_grp_ids);\n \t\tvnic->fw_grp_ids = NULL;\n+\t\tif (vnic->ref_cnt && !vnic->rx_queue_cnt)\n+\t\t\tvnic->ref_cnt--;\n \t}\n \t/* Ring resources */\n \tbnxt_free_all_hwrm_rings(bp);\n", "prefixes": [ "4/7" ] }{ "id": 136546, "url": "