Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/74529/?format=api
https://patches.dpdk.org/api/patches/74529/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200721074000.30449-7-guinanx.sun@intel.com/", "project": { "id": 1, "url": "https://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": "<20200721074000.30449-7-guinanx.sun@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200721074000.30449-7-guinanx.sun@intel.com", "date": "2020-07-21T07:39:58", "name": "[6/8] net/i40e/base: add disable unused ports capability", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f9569da69dd1d4c588333fb7bd1358a685138d24", "submitter": { "id": 1476, "url": "https://patches.dpdk.org/api/people/1476/?format=api", "name": "Guinan Sun", "email": "guinanx.sun@intel.com" }, "delegate": { "id": 1540, "url": "https://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200721074000.30449-7-guinanx.sun@intel.com/mbox/", "series": [ { "id": 11193, "url": "https://patches.dpdk.org/api/series/11193/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11193", "date": "2020-07-21T07:39:52", "name": "update i40e base code", "version": 1, "mbox": "https://patches.dpdk.org/series/11193/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/74529/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/74529/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 092FEA0526;\n\tTue, 21 Jul 2020 10:05:33 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 02E031C043;\n\tTue, 21 Jul 2020 10:04:49 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by dpdk.org (Postfix) with ESMTP id 5CECB1C06D\n for <dev@dpdk.org>; Tue, 21 Jul 2020 10:04:47 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Jul 2020 01:04:45 -0700", "from intel.sh.intel.com ([10.239.255.18])\n by orsmga002.jf.intel.com with ESMTP; 21 Jul 2020 01:04:43 -0700" ], "IronPort-SDR": [ "\n nBiTC24d5HTgeNgt6qhYoLORvKDkGOO5X8OP4wxORZS8pZcMKHTpQXdW3ictwjoJQQRpOEajGT\n mL9kBnSyNBFA==", "\n 0yV5GboA/wvKVJLB/XtHJAhYWK4x5jL2QSEF58pSMYQnQoAteVKBTlUTmO9TcQ/bpZPJ5Mgv/T\n a7Z1sWzroIrQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9688\"; a=\"147586170\"", "E=Sophos;i=\"5.75,378,1589266800\"; d=\"scan'208\";a=\"147586170\"", "E=Sophos;i=\"5.75,378,1589266800\"; d=\"scan'208\";a=\"301541680\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Guinan Sun <guinanx.sun@intel.com>", "To": "dev@dpdk.org", "Cc": "Beilei Xing <beilei.xing@intel.com>, Jeff Guo <jia.guo@intel.com>,\n Guinan Sun <guinanx.sun@intel.com>,\n Damian Milosek <damian.milosek@intel.com>", "Date": "Tue, 21 Jul 2020 07:39:58 +0000", "Message-Id": "<20200721074000.30449-7-guinanx.sun@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200721074000.30449-1-guinanx.sun@intel.com>", "References": "<20200721074000.30449-1-guinanx.sun@intel.com>", "Subject": "[dpdk-dev] [PATCH 6/8] net/i40e/base: add disable unused ports\n\tcapability", "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 <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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This patch adds support for \"Disable Unused Ports\" functionality.\n\nSigned-off-by: Damian Milosek <damian.milosek@intel.com>\nSigned-off-by: Guinan Sun <guinanx.sun@intel.com>\n---\n drivers/net/i40e/base/i40e_adminq_cmd.h | 1 +\n drivers/net/i40e/base/i40e_common.c | 6 ++++++\n drivers/net/i40e/base/i40e_type.h | 1 +\n 3 files changed, 8 insertions(+)", "diff": "diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h b/drivers/net/i40e/base/i40e_adminq_cmd.h\nindex e1018ed49..c7686b0d3 100644\n--- a/drivers/net/i40e/base/i40e_adminq_cmd.h\n+++ b/drivers/net/i40e/base/i40e_adminq_cmd.h\n@@ -440,6 +440,7 @@ struct i40e_aqc_list_capabilities_element_resp {\n #define I40E_AQ_CAP_ID_SDP\t\t0x0062\n #define I40E_AQ_CAP_ID_MDIO\t\t0x0063\n #define I40E_AQ_CAP_ID_WSR_PROT\t\t0x0064\n+#define I40E_AQ_CAP_ID_DIS_UNUSED_PORTS\t0x0067\n #define I40E_AQ_CAP_ID_NVM_MGMT\t\t0x0080\n #define I40E_AQ_CAP_ID_FLEX10\t\t0x00F1\n #define I40E_AQ_CAP_ID_CEM\t\t0x00F2\ndiff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c\nindex 85c22849e..65317f6c6 100644\n--- a/drivers/net/i40e/base/i40e_common.c\n+++ b/drivers/net/i40e/base/i40e_common.c\n@@ -4021,6 +4021,12 @@ STATIC void i40e_parse_discover_capabilities(struct i40e_hw *hw, void *buff,\n \t\t\t\t \"HW Capability: wr_csr_prot = 0x%llX\\n\\n\",\n \t\t\t\t (p->wr_csr_prot & 0xffff));\n \t\t\tbreak;\n+\t\tcase I40E_AQ_CAP_ID_DIS_UNUSED_PORTS:\n+\t\t\tp->dis_unused_ports = (bool)number;\n+\t\t\ti40e_debug(hw, I40E_DEBUG_INIT,\n+\t\t\t\t \"HW Capability: dis_unused_ports = %d\\n\\n\",\n+\t\t\t\t p->dis_unused_ports);\n+\t\t\tbreak;\n \t\tcase I40E_AQ_CAP_ID_NVM_MGMT:\n \t\t\tif (number & I40E_NVM_MGMT_SEC_REV_DISABLED)\n \t\t\t\tp->sec_rev_disabled = true;\ndiff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h\nindex 0eeb55975..cf4134583 100644\n--- a/drivers/net/i40e/base/i40e_type.h\n+++ b/drivers/net/i40e/base/i40e_type.h\n@@ -425,6 +425,7 @@ struct i40e_hw_capabilities {\n \tu32 enabled_tcmap;\n \tu32 maxtc;\n \tu64 wr_csr_prot;\n+\tbool dis_unused_ports;\n \tbool apm_wol_support;\n \tenum i40e_acpi_programming_method acpi_prog_method;\n \tbool proxy_support;\n", "prefixes": [ "6/8" ] }{ "id": 74529, "url": "