Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/66676/?format=api
http://patches.dpdk.org/api/patches/66676/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200316074603.10998-3-leyi.rong@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": "<20200316074603.10998-3-leyi.rong@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200316074603.10998-3-leyi.rong@intel.com", "date": "2020-03-16T07:45:53", "name": "[02/12] net/iavf: return error if opcode is mismatched", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f6b960092cccc6d731558312876054ed69945097", "submitter": { "id": 1204, "url": "http://patches.dpdk.org/api/people/1204/?format=api", "name": "Leyi Rong", "email": "leyi.rong@intel.com" }, "delegate": { "id": 31221, "url": "http://patches.dpdk.org/api/users/31221/?format=api", "username": "yexl", "first_name": "xiaolong", "last_name": "ye", "email": "xiaolong.ye@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200316074603.10998-3-leyi.rong@intel.com/mbox/", "series": [ { "id": 8918, "url": "http://patches.dpdk.org/api/series/8918/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8918", "date": "2020-03-16T07:45:51", "name": "framework for advanced iAVF PMD", "version": 1, "mbox": "http://patches.dpdk.org/series/8918/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/66676/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/66676/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 AFC46A0559;\n\tMon, 16 Mar 2020 08:57:41 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id CDAC61C07B;\n\tMon, 16 Mar 2020 08:57:28 +0100 (CET)", "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by dpdk.org (Postfix) with ESMTP id 79EB91C065\n for <dev@dpdk.org>; Mon, 16 Mar 2020 08:57:25 +0100 (CET)", "from orsmga004.jf.intel.com ([10.7.209.38])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Mar 2020 00:57:25 -0700", "from dpdk-lrong-srv-04.sh.intel.com ([10.67.119.221])\n by orsmga004.jf.intel.com with ESMTP; 16 Mar 2020 00:57:23 -0700" ], "IronPort-SDR": [ "\n dsUFpWrNkHy/eUqDnTgMC07UwqEMjYBdzLBJOY/Nwtn2jQBz9DmTF13gYFMFWlhWawEDJjiMHF\n 3U3pJ3Get41A==", "\n oxIAzb1vVaJWFO8wilkkfFHcV41MWwSvOoYIX6et2VdA6/rjdhMAmqRKfBF1XYXXRg/4ElwQ8p\n CQU70Tv40eyg==" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.70,559,1574150400\"; d=\"scan'208\";a=\"390622491\"", "From": "Leyi Rong <leyi.rong@intel.com>", "To": "qi.z.zhang@intel.com,\n\txiaolong.ye@intel.com", "Cc": "dev@dpdk.org,\n\tLeyi Rong <leyi.rong@intel.com>", "Date": "Mon, 16 Mar 2020 15:45:53 +0800", "Message-Id": "<20200316074603.10998-3-leyi.rong@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200316074603.10998-1-leyi.rong@intel.com>", "References": "<20200316074603.10998-1-leyi.rong@intel.com>", "Subject": "[dpdk-dev] [PATCH 02/12] net/iavf: return error if opcode is\n\tmismatched", "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": "Adds error return when the opcode of read message is\nmismatched which is received from adminQ.\n\nFixes: 22b123a36d07 (\"net/avf: initialize PMD\")\n\nSigned-off-by: Leyi Rong <leyi.rong@intel.com>\n---\n drivers/net/iavf/iavf_vchnl.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c\nindex fa4da3a6d..b7fb05d32 100644\n--- a/drivers/net/iavf/iavf_vchnl.c\n+++ b/drivers/net/iavf/iavf_vchnl.c\n@@ -52,9 +52,11 @@ iavf_read_msg_from_pf(struct iavf_adapter *adapter, uint16_t buf_len,\n \tPMD_DRV_LOG(DEBUG, \"AQ from pf carries opcode %u, retval %d\",\n \t\t opcode, vf->cmd_retval);\n \n-\tif (opcode != vf->pend_cmd)\n+\tif (opcode != vf->pend_cmd) {\n \t\tPMD_DRV_LOG(WARNING, \"command mismatch, expect %u, get %u\",\n \t\t\t vf->pend_cmd, opcode);\n+\t\treturn IAVF_ERR_OPCODE_MISMATCH;\n+\t}\n \n \treturn IAVF_SUCCESS;\n }\n", "prefixes": [ "02/12" ] }{ "id": 66676, "url": "