Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/17512/?format=api
http://patches.dpdk.org/api/patches/17512/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1480727953-92137-11-git-send-email-jingjing.wu@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": "<1480727953-92137-11-git-send-email-jingjing.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1480727953-92137-11-git-send-email-jingjing.wu@intel.com", "date": "2016-12-03T01:18:52", "name": "[dpdk-dev,10/31] net/i40e/base: add protocols when discover capabilities", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "fff874f327be8f965da13194e0816ace12190d3c", "submitter": { "id": 47, "url": "http://patches.dpdk.org/api/people/47/?format=api", "name": "Jingjing Wu", "email": "jingjing.wu@intel.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/1480727953-92137-11-git-send-email-jingjing.wu@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/17512/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/17512/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 0E427FA62;\n\tSat, 3 Dec 2016 02:21:04 +0100 (CET)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id B45E36932\n\tfor <dev@dpdk.org>; Sat, 3 Dec 2016 02:20:00 +0100 (CET)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga103.jf.intel.com with ESMTP; 02 Dec 2016 17:20:00 -0800", "from dpdk2.sh.intel.com ([10.239.128.246])\n\tby orsmga003.jf.intel.com with ESMTP; 02 Dec 2016 17:19:59 -0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.33,289,1477983600\"; d=\"scan'208\";a=\"908199237\"", "From": "Jingjing Wu <jingjing.wu@intel.com>", "To": "dev@dpdk.org", "Cc": "jingjing.wu@intel.com,\n\thelin.zhang@intel.com", "Date": "Sat, 3 Dec 2016 09:18:52 +0800", "Message-Id": "<1480727953-92137-11-git-send-email-jingjing.wu@intel.com>", "X-Mailer": "git-send-email 2.4.11", "In-Reply-To": "<1480727953-92137-1-git-send-email-jingjing.wu@intel.com>", "References": "<1480727953-92137-1-git-send-email-jingjing.wu@intel.com>", "Subject": "[dpdk-dev] [PATCH 10/31] net/i40e/base: add protocols when discover\n\tcapabilities", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add logical_id to I40E_AQ_CAP_ID_MNG_MODE capability starting from major\nversion 2.\n\nSigned-off-by: Jingjing Wu <jingjing.wu@intel.com>\n---\n drivers/net/i40e/base/i40e_common.c | 8 ++++++++\n drivers/net/i40e/base/i40e_type.h | 4 ++++\n 2 files changed, 12 insertions(+)", "diff": "diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c\nindex 85c1c11..9591428 100644\n--- a/drivers/net/i40e/base/i40e_common.c\n+++ b/drivers/net/i40e/base/i40e_common.c\n@@ -3611,6 +3611,14 @@ STATIC void i40e_parse_discover_capabilities(struct i40e_hw *hw, void *buff,\n \t\t\tbreak;\n \t\tcase I40E_AQ_CAP_ID_MNG_MODE:\n \t\t\tp->management_mode = number;\n+\t\t\tif (major_rev > 1) {\n+\t\t\t\tp->mng_protocols_over_mctp = logical_id;\n+\t\t\t\ti40e_debug(hw, I40E_DEBUG_INIT,\n+\t\t\t\t\t \"HW Capability: Protocols over MCTP = %d\\n\",\n+\t\t\t\t\t p->mng_protocols_over_mctp);\n+\t\t\t} else {\n+\t\t\t\tp->mng_protocols_over_mctp = 0;\n+\t\t\t}\n \t\t\ti40e_debug(hw, I40E_DEBUG_INIT,\n \t\t\t\t \"HW Capability: Management Mode = %d\\n\",\n \t\t\t\t p->management_mode);\ndiff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h\nindex 530ee5e..223f5fe 100644\n--- a/drivers/net/i40e/base/i40e_type.h\n+++ b/drivers/net/i40e/base/i40e_type.h\n@@ -366,6 +366,10 @@ struct i40e_hw_capabilities {\n #define I40E_NVM_IMAGE_TYPE_UDP_CLOUD\t0x3\n \n \tu32 management_mode;\n+\tu32 mng_protocols_over_mctp;\n+#define I40E_MNG_PROTOCOL_PLDM\t\t0x2\n+#define I40E_MNG_PROTOCOL_OEM_COMMANDS\t0x4\n+#define I40E_MNG_PROTOCOL_NCSI\t\t0x8\n \tu32 npar_enable;\n \tu32 os2bmc;\n \tu32 valid_functions;\n", "prefixes": [ "dpdk-dev", "10/31" ] }{ "id": 17512, "url": "