Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/77259/?format=api
http://patches.dpdk.org/api/patches/77259/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200911013038.19744-4-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": "<20200911013038.19744-4-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200911013038.19744-4-qi.z.zhang@intel.com", "date": "2020-09-11T01:30:36", "name": "[3/5] common/iavf: save max MTU received from PF", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "f4f408fa4a410a33ba76d7bee87449db10e66508", "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/20200911013038.19744-4-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 12115, "url": "http://patches.dpdk.org/api/series/12115/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12115", "date": "2020-09-11T01:30:33", "name": "iavf base code update", "version": 1, "mbox": "http://patches.dpdk.org/series/12115/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/77259/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/77259/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 92B11A04B7;\n\tFri, 11 Sep 2020 03:27:07 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 590CD1C0DA;\n\tFri, 11 Sep 2020 03:26:50 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by dpdk.org (Postfix) with ESMTP id 13D071C0CE\n for <dev@dpdk.org>; Fri, 11 Sep 2020 03:26:46 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Sep 2020 18:26:46 -0700", "from dpdk51.sh.intel.com ([10.67.111.82])\n by orsmga008.jf.intel.com with ESMTP; 10 Sep 2020 18:26:45 -0700" ], "IronPort-SDR": [ "\n NmeRvLY8jC0tdBsbaI3giwpx3Wq+Fb7BFfT6DyR9QAmMAhIgAj2J/I431tNEPfiP6wOHQv8ykO\n 2WB0FKkwiB6Q==", "\n cvykOpwvuRZoNYZMuWXwFSXijiqmAawk6+PtTOlvXayIWIjfqO4MFbo5L/I3hhqKuJmKtIr8VE\n KXJYMvMn5xHg==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9740\"; a=\"159614186\"", "E=Sophos;i=\"5.76,413,1592895600\"; d=\"scan'208\";a=\"159614186\"", "E=Sophos;i=\"5.76,413,1592895600\"; d=\"scan'208\";a=\"334362170\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "beilei.xing@intel.com", "Cc": "dev@dpdk.org, Qi Zhang <qi.z.zhang@intel.com>,\n Brett Creeley <brett.creeley@intel.com>", "Date": "Fri, 11 Sep 2020 09:30:36 +0800", "Message-Id": "<20200911013038.19744-4-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.13.6", "In-Reply-To": "<20200911013038.19744-1-qi.z.zhang@intel.com>", "References": "<20200911013038.19744-1-qi.z.zhang@intel.com>", "Subject": "[dpdk-dev] [PATCH 3/5] common/iavf: save max MTU received from PF", "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": "Most values from the VIRTCHNL_OP_GET_VF_RESOURCES are stored in the\niavf_hw_capabilities structure. Unfortunately, it seems that\nmax_mtu was missed. Add this member to the structure and save it when\nparsing hw config.\n\nSigned-off-by: Brett Creeley <brett.creeley@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/common/iavf/iavf_common.c | 1 +\n drivers/common/iavf/iavf_type.h | 1 +\n 2 files changed, 2 insertions(+)", "diff": "diff --git a/drivers/common/iavf/iavf_common.c b/drivers/common/iavf/iavf_common.c\nindex 57ec1ff39..c951b7d78 100644\n--- a/drivers/common/iavf/iavf_common.c\n+++ b/drivers/common/iavf/iavf_common.c\n@@ -975,6 +975,7 @@ void iavf_vf_parse_hw_config(struct iavf_hw *hw,\n \thw->dev_caps.num_msix_vectors_vf = msg->max_vectors;\n \thw->dev_caps.dcb = msg->vf_cap_flags &\n \t\t\t VIRTCHNL_VF_OFFLOAD_L2;\n+\thw->dev_caps.max_mtu = msg->max_mtu;\n \tfor (i = 0; i < msg->num_vsis; i++) {\n \t\tif (vsi_res->vsi_type == VIRTCHNL_VSI_SRIOV) {\n \t\t\tiavf_memcpy(hw->mac.perm_addr,\ndiff --git a/drivers/common/iavf/iavf_type.h b/drivers/common/iavf/iavf_type.h\nindex 665b070a0..0990c9aa3 100644\n--- a/drivers/common/iavf/iavf_type.h\n+++ b/drivers/common/iavf/iavf_type.h\n@@ -224,6 +224,7 @@ struct iavf_hw_capabilities {\n \tu32 num_tx_qp;\n \tu32 base_queue;\n \tu32 num_msix_vectors_vf;\n+\tu32 max_mtu;\n \tbool apm_wol_support;\n \tenum iavf_acpi_programming_method acpi_prog_method;\n \tbool proxy_support;\n", "prefixes": [ "3/5" ] }{ "id": 77259, "url": "