get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/127009/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 127009,
    "url": "http://patches.dpdk.org/api/patches/127009/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230518151638.1207021-16-qiming.yang@intel.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": "<20230518151638.1207021-16-qiming.yang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230518151638.1207021-16-qiming.yang@intel.com",
    "date": "2023-05-18T15:16:33",
    "name": "[v2,15/20] net/ice/base: check VSIG before disassociating VSI",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "d1eede38761dd868827743d495ad81d5688314c7",
    "submitter": {
        "id": 522,
        "url": "http://patches.dpdk.org/api/people/522/?format=api",
        "name": "Qiming Yang",
        "email": "qiming.yang@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230518151638.1207021-16-qiming.yang@intel.com/mbox/",
    "series": [
        {
            "id": 28063,
            "url": "http://patches.dpdk.org/api/series/28063/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28063",
            "date": "2023-05-18T15:16:18",
            "name": "net/ice/base: code update",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/28063/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/127009/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/127009/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 0304142AF1;\n\tThu, 18 May 2023 17:36:18 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9C76E42DA4;\n\tThu, 18 May 2023 17:34:45 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 10A0842D9B\n for <dev@dpdk.org>; Thu, 18 May 2023 17:34:42 +0200 (CEST)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 May 2023 08:34:42 -0700",
            "from dpdk-qiming3.sh.intel.com ([10.67.111.4])\n by fmsmga007.fm.intel.com with ESMTP; 18 May 2023 08:34:41 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1684424083; x=1715960083;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=qOrryRfocNYxpzvtwNi4mSEKYKrSIK1AOwHqzWP/Kok=;\n b=BoEwXhlFUWetonzSEMJZ5yupIv6XHcU1EOmzpeawuLFqwDNBirrsi5uc\n pb8NnqXrDnYMNVxkWkvAuU8tuLCkKsS3JyStSzdOrPXCSltCqj/E4tnv6\n beq07e3pqPxGbUkmjuGJkjLpD5/kkc8Ced/88fPi4JETUi4OnFh+0sPiy\n rNgZnt8S8API7yR/EA4vLZ2JSVG/VvjjUv0p4WDohnp467uIfy7/jnmHp\n gf7qWu1fQLU7MZalbghZDSYhCJoXzB5OlHfQICiUrPmEfqDcl22JRWTSf\n EkUYKth0kTKj9bejiidpXCUR4af7LuzOIW5S2/OgegccvPBWsq3djni50 A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10714\"; a=\"341527753\"",
            "E=Sophos;i=\"5.99,285,1677571200\"; d=\"scan'208\";a=\"341527753\"",
            "E=McAfee;i=\"6600,9927,10714\"; a=\"705235206\"",
            "E=Sophos;i=\"5.99,285,1677571200\"; d=\"scan'208\";a=\"705235206\""
        ],
        "X-ExtLoop1": "1",
        "From": "Qiming Yang <qiming.yang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "qi.z.zhang@intel.com, Qiming Yang <qiming.yang@intel.com>,\n Benjamin Mikailenko <benjamin.mikailenko@intel.com>",
        "Subject": "[PATCH v2 15/20] net/ice/base: check VSIG before disassociating VSI",
        "Date": "Thu, 18 May 2023 15:16:33 +0000",
        "Message-Id": "<20230518151638.1207021-16-qiming.yang@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230518151638.1207021-1-qiming.yang@intel.com>",
        "References": "<20230427062001.478032-1-qiming.yang@intel.com>\n <20230518151638.1207021-1-qiming.yang@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "Add checking if the VSIG group exists when iterating through all\nflow profiles and disassociating them from the VSI.\n\nSigned-off-by: Benjamin Mikailenko <benjamin.mikailenko@intel.com>\nSigned-off-by: Qiming Yang <qiming.yang@intel.com>\n---\n drivers/net/ice/base/ice_flow.c | 13 ++++++++++++-\n 1 file changed, 12 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ice/base/ice_flow.c b/drivers/net/ice/base/ice_flow.c\nindex 5254ee27ed..7f1490de50 100644\n--- a/drivers/net/ice/base/ice_flow.c\n+++ b/drivers/net/ice/base/ice_flow.c\n@@ -3856,6 +3856,7 @@ enum ice_status ice_rem_vsi_rss_cfg(struct ice_hw *hw, u16 vsi_handle)\n \tconst enum ice_block blk = ICE_BLK_RSS;\n \tstruct ice_flow_prof *p, *t;\n \tenum ice_status status = ICE_SUCCESS;\n+\tu16 vsig;\n \n \tif (!ice_is_vsi_valid(hw, vsi_handle))\n \t\treturn ICE_ERR_PARAM;\n@@ -3865,7 +3866,16 @@ enum ice_status ice_rem_vsi_rss_cfg(struct ice_hw *hw, u16 vsi_handle)\n \n \tice_acquire_lock(&hw->rss_locks);\n \tLIST_FOR_EACH_ENTRY_SAFE(p, t, &hw->fl_profs[blk], ice_flow_prof,\n-\t\t\t\t l_entry)\n+\t\t\t\t l_entry) {\n+\t\tint ret;\n+\n+\t\t/* check if vsig is already removed */\n+\t\tret = ice_vsig_find_vsi(hw, blk,\n+\t\t\t\t\tice_get_hw_vsi_num(hw, vsi_handle),\n+\t\t\t\t\t&vsig);\n+\t\tif (!ret && !vsig)\n+\t\t\tbreak;\n+\n \t\tif (ice_is_bit_set(p->vsis, vsi_handle)) {\n \t\t\tstatus = ice_flow_disassoc_prof(hw, blk, p, vsi_handle);\n \t\t\tif (status)\n@@ -3877,6 +3887,7 @@ enum ice_status ice_rem_vsi_rss_cfg(struct ice_hw *hw, u16 vsi_handle)\n \t\t\t\t\tbreak;\n \t\t\t}\n \t\t}\n+\t}\n \tice_release_lock(&hw->rss_locks);\n \n \treturn status;\n",
    "prefixes": [
        "v2",
        "15/20"
    ]
}