get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 115019,
    "url": "http://patches.dpdk.org/api/patches/115019/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220815071306.2910599-63-qi.z.zhang@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": "<20220815071306.2910599-63-qi.z.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220815071306.2910599-63-qi.z.zhang@intel.com",
    "date": "2022-08-15T07:12:58",
    "name": "[62/70] net/ice/base: add function to parse DCBX config",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "448b52eeb259002ce35492ea21358aa1af0de15b",
    "submitter": {
        "id": 504,
        "url": "http://patches.dpdk.org/api/people/504/?format=api",
        "name": "Qi Zhang",
        "email": "qi.z.zhang@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/20220815071306.2910599-63-qi.z.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 24307,
            "url": "http://patches.dpdk.org/api/series/24307/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24307",
            "date": "2022-08-15T07:11:56",
            "name": "ice base code update",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/24307/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/115019/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/115019/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 CE40CA00C3;\n\tMon, 15 Aug 2022 01:09:02 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5DBAF42CAF;\n\tMon, 15 Aug 2022 01:04:48 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id F1A8342BDD\n for <dev@dpdk.org>; Mon, 15 Aug 2022 01:04:45 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Aug 2022 16:04:45 -0700",
            "from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.4])\n by fmsmga005.fm.intel.com with ESMTP; 14 Aug 2022 16:04:44 -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=1660518286; x=1692054286;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=63QjjJp3aPhowNaSeqFUbK+HZzcdKi9Ubi24irMnHew=;\n b=GXXOIkSN+ouUnOVpnKSw2J+iEWQZcuFM75U7l6402JmzHHjCE1YinwIZ\n 7y872S+I3WYUgteUAbcNwW1BXqa4a8QQ2mOm8/Br475vqmabKco1kyCPo\n J5/0cNJx8of+8yxBz41bBSx1QN+BAHKW5RZ2PmcvDSaFZ0V2vTJ00e65Q\n jG5yqOG83bqS2h2+5KcosGwC+gFswWL5HqoP+tvOE9Vm3G5TimF8PrBv6\n Ax1PIGwRcZahOsAR+e6Z5q+KZPFRflo3EOCXfkzhWzelCI4HiM4GcDW1R\n 4der7Luh/LdOOl1QXV2FZzNGKTGNZ7dKgmnyJ1/iZsJOcAPba+7jHscE8 A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10439\"; a=\"293128809\"",
            "E=Sophos;i=\"5.93,237,1654585200\"; d=\"scan'208\";a=\"293128809\"",
            "E=Sophos;i=\"5.93,237,1654585200\"; d=\"scan'208\";a=\"934296935\""
        ],
        "X-ExtLoop1": "1",
        "From": "Qi Zhang <qi.z.zhang@intel.com>",
        "To": "qiming.yang@intel.com",
        "Cc": "dev@dpdk.org, Qi Zhang <qi.z.zhang@intel.com>,\n Anatolii Gerasymenko <anatolii.gerasymenko@intel.com>",
        "Subject": "[PATCH 62/70] net/ice/base: add function to parse DCBX config",
        "Date": "Mon, 15 Aug 2022 03:12:58 -0400",
        "Message-Id": "<20220815071306.2910599-63-qi.z.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.31.1",
        "In-Reply-To": "<20220815071306.2910599-1-qi.z.zhang@intel.com>",
        "References": "<20220815071306.2910599-1-qi.z.zhang@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": "LLDP MIB Change Event (opcode 0x0A01) already contains MIB, which\nhas been changed. Add ice_dcb_process_lldp_set_mib_change() function,\nwhich will set local/remote DCBX config from LLDP MIB Change Event's\nbuffer.\n\nThis function will be used in a base driver handler for LLDP MIB\nChang Event.\n\nSigned-off-by: Anatolii Gerasymenko <anatolii.gerasymenko@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_dcb.c | 37 ++++++++++++++++++++++++++++++++++\n drivers/net/ice/base/ice_dcb.h |  2 ++\n 2 files changed, 39 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/base/ice_dcb.c b/drivers/net/ice/base/ice_dcb.c\nindex d511a5f5ec..30494e868e 100644\n--- a/drivers/net/ice/base/ice_dcb.c\n+++ b/drivers/net/ice/base/ice_dcb.c\n@@ -970,6 +970,43 @@ enum ice_status ice_get_dcb_cfg(struct ice_port_info *pi)\n \treturn ret;\n }\n \n+/**\n+ * ice_get_dcb_cfg_from_mib_change\n+ * @pi: port information structure\n+ * @event: pointer to the admin queue receive event\n+ *\n+ * Set DCB configuration from received MIB Change event\n+ */\n+void ice_get_dcb_cfg_from_mib_change(struct ice_port_info *pi,\n+\t\t\t\t     struct ice_rq_event_info *event)\n+{\n+\tstruct ice_dcbx_cfg *dcbx_cfg = &pi->qos_cfg.local_dcbx_cfg;\n+\tstruct ice_aqc_lldp_get_mib *mib;\n+\tu8 change_type, dcbx_mode;\n+\n+\tmib = (struct ice_aqc_lldp_get_mib *)&event->desc.params.raw;\n+\n+\tchange_type = mib->type & ICE_AQ_LLDP_MIB_TYPE_M;\n+\tif (change_type == ICE_AQ_LLDP_MIB_REMOTE)\n+\t\tdcbx_cfg = &pi->qos_cfg.remote_dcbx_cfg;\n+\n+\tdcbx_mode = ((mib->type & ICE_AQ_LLDP_DCBX_M) >>\n+\t\t     ICE_AQ_LLDP_DCBX_S);\n+\n+\tswitch (dcbx_mode) {\n+\tcase ICE_AQ_LLDP_DCBX_IEEE:\n+\t\tdcbx_cfg->dcbx_mode = ICE_DCBX_MODE_IEEE;\n+\t\tice_lldp_to_dcb_cfg(event->msg_buf, dcbx_cfg);\n+\t\tbreak;\n+\n+\tcase ICE_AQ_LLDP_DCBX_CEE:\n+\t\tpi->qos_cfg.desired_dcbx_cfg = pi->qos_cfg.local_dcbx_cfg;\n+\t\tice_cee_to_dcb_cfg((struct ice_aqc_get_cee_dcb_cfg_resp *)\n+\t\t\t\t   event->msg_buf, pi);\n+\t\tbreak;\n+\t}\n+}\n+\n /**\n  * ice_init_dcb\n  * @hw: pointer to the HW struct\ndiff --git a/drivers/net/ice/base/ice_dcb.h b/drivers/net/ice/base/ice_dcb.h\nindex 24c8da2dc8..7e1e4d0297 100644\n--- a/drivers/net/ice/base/ice_dcb.h\n+++ b/drivers/net/ice/base/ice_dcb.h\n@@ -205,6 +205,8 @@ ice_aq_get_dcb_cfg(struct ice_hw *hw, u8 mib_type, u8 bridgetype,\n \t\t   struct ice_dcbx_cfg *dcbcfg);\n enum ice_status ice_get_dcb_cfg(struct ice_port_info *pi);\n enum ice_status ice_set_dcb_cfg(struct ice_port_info *pi);\n+void ice_get_dcb_cfg_from_mib_change(struct ice_port_info *pi,\n+\t\t\t\t     struct ice_rq_event_info *event);\n enum ice_status ice_init_dcb(struct ice_hw *hw, bool enable_mib_change);\n void ice_dcb_cfg_to_lldp(u8 *lldpmib, u16 *miblen, struct ice_dcbx_cfg *dcbcfg);\n enum ice_status\n",
    "prefixes": [
        "62/70"
    ]
}