Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.0/patches/12970/?format=api
http://patchwork.dpdk.org/api/1.0/patches/12970/?format=api", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/1.0/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" }, "msgid": "<1464070989-32726-12-git-send-email-helin.zhang@intel.com>", "date": "2016-05-24T06:23:05", "name": "[dpdk-dev,v2,11/15] i40e/base: add more device capabilities", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "6ed9c0aea683d3a6c18c123e22c6e4476e10815b", "submitter": { "id": 14, "url": "http://patchwork.dpdk.org/api/1.0/people/14/?format=api", "name": "Zhang, Helin", "email": "helin.zhang@intel.com" }, "delegate": { "id": 10, "url": "http://patchwork.dpdk.org/api/1.0/users/10/?format=api", "username": "bruce", "first_name": "Bruce", "last_name": "Richardson", "email": "bruce.richardson@intel.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1464070989-32726-12-git-send-email-helin.zhang@intel.com/mbox/", "series": [], "check": "pending", "checks": "http://patchwork.dpdk.org/api/patches/12970/checks/", "tags": {}, "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 B680D677E;\n\tTue, 24 May 2016 08:23:50 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 83DA43230\n\tfor <dev@dpdk.org>; Tue, 24 May 2016 08:23:41 +0200 (CEST)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby fmsmga104.fm.intel.com with ESMTP; 23 May 2016 23:23:41 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga003.jf.intel.com with ESMTP; 23 May 2016 23:23:40 -0700", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id u4O6NcPf000512;\n\tTue, 24 May 2016 14:23:38 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid u4O6NY8B000495; Tue, 24 May 2016 14:23:36 +0800", "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id u4O6NYVA000491; \n\tTue, 24 May 2016 14:23:34 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.26,359,1459839600\"; d=\"scan'208\";a=\"813468107\"", "From": "Helin Zhang <helin.zhang@intel.com>", "To": "dev@dpdk.org", "Cc": "Helin Zhang <helin.zhang@intel.com>", "Date": "Tue, 24 May 2016 14:23:05 +0800", "Message-Id": "<1464070989-32726-12-git-send-email-helin.zhang@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1464070989-32726-1-git-send-email-helin.zhang@intel.com>", "References": "<1462438424-22574-1-git-send-email-helin.zhang@intel.com>\n\t<1464070989-32726-1-git-send-email-helin.zhang@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 11/15] i40e/base: add more device capabilities", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <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": "It adds more device capabilities for NVM management.\n- if update is available\n- if security check is needed\n\nSigned-off-by: Helin Zhang <helin.zhang@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 | 5 +++++\n 3 files changed, 12 insertions(+)", "diff": "diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h b/drivers/net/i40e/base/i40e_adminq_cmd.h\nindex 00c2c0a..cccc968 100644\n--- a/drivers/net/i40e/base/i40e_adminq_cmd.h\n+++ b/drivers/net/i40e/base/i40e_adminq_cmd.h\n@@ -446,6 +446,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_NVM_MGMT\t\t0x0080\n #define I40E_AQ_CAP_ID_FLEX10\t\t0x00F1\n #define I40E_AQ_CAP_ID_CEM\t\t0x00F2\n \ndiff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c\nindex 80d69dd..98ed4b6 100644\n--- a/drivers/net/i40e/base/i40e_common.c\n+++ b/drivers/net/i40e/base/i40e_common.c\n@@ -3762,6 +3762,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_NVM_MGMT:\n+\t\t\tif (number & I40E_NVM_MGMT_SEC_REV_DISABLED)\n+\t\t\t\tp->sec_rev_disabled = true;\n+\t\t\tif (number & I40E_NVM_MGMT_UPDATE_DISABLED)\n+\t\t\t\tp->update_disabled = true;\n+\t\t\tbreak;\n #ifdef X722_SUPPORT\n \t\tcase I40E_AQ_CAP_ID_WOL_AND_PROXY:\n \t\t\thw->num_wol_proxy_filters = (u16)number;\ndiff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h\nindex 73a18e1..7ed3048 100644\n--- a/drivers/net/i40e/base/i40e_type.h\n+++ b/drivers/net/i40e/base/i40e_type.h\n@@ -376,6 +376,11 @@ struct i40e_hw_capabilities {\n #define I40E_FLEX10_STATUS_DCC_ERROR\t0x1\n #define I40E_FLEX10_STATUS_VC_MODE\t0x2\n \n+\tbool sec_rev_disabled;\n+\tbool update_disabled;\n+#define I40E_NVM_MGMT_SEC_REV_DISABLED\t0x1\n+#define I40E_NVM_MGMT_UPDATE_DISABLED\t0x2\n+\n \tbool mgmt_cem;\n \tbool ieee_1588;\n \tbool iwarp;\n", "prefixes": [ "dpdk-dev", "v2", "11/15" ] }{ "id": 12970, "url": "