Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/74799/?format=api
http://patches.dpdk.org/api/patches/74799/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1708e8d459d3888316a70d4eabfc3172c67eb0e9.1595648149.git.cloud.wangxiaoyun@huawei.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": "<1708e8d459d3888316a70d4eabfc3172c67eb0e9.1595648149.git.cloud.wangxiaoyun@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1708e8d459d3888316a70d4eabfc3172c67eb0e9.1595648149.git.cloud.wangxiaoyun@huawei.com", "date": "2020-07-25T03:48:24", "name": "[v1,3/4] net/hinic/base: modify vhd type for SDI", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "cf28a4405048bc9fd765ba84f08746a83b7da615", "submitter": { "id": 1446, "url": "http://patches.dpdk.org/api/people/1446/?format=api", "name": "Wangxiaoyun (Cloud)", "email": "cloud.wangxiaoyun@huawei.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/1708e8d459d3888316a70d4eabfc3172c67eb0e9.1595648149.git.cloud.wangxiaoyun@huawei.com/mbox/", "series": [ { "id": 11298, "url": "http://patches.dpdk.org/api/series/11298/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11298", "date": "2020-07-25T03:48:22", "name": "some bugs fixes", "version": 1, "mbox": "http://patches.dpdk.org/series/11298/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/74799/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/74799/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 04BE8A0527;\n\tSat, 25 Jul 2020 05:49:14 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1F26E1C067;\n\tSat, 25 Jul 2020 05:48:59 +0200 (CEST)", "from huawei.com (szxga06-in.huawei.com [45.249.212.32])\n by dpdk.org (Postfix) with ESMTP id 373661C05C\n for <dev@dpdk.org>; Sat, 25 Jul 2020 05:48:57 +0200 (CEST)", "from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58])\n by Forcepoint Email with ESMTP id BBBBC96503FB9C3A9A33;\n Sat, 25 Jul 2020 11:48:54 +0800 (CST)", "from tester.localdomain (10.175.119.39) by\n DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id\n 14.3.487.0; Sat, 25 Jul 2020 11:48:47 +0800" ], "From": "Xiaoyun wang <cloud.wangxiaoyun@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<ferruh.yigit@intel.com>, <bluca@debian.org>, <luoxianjun@huawei.com>,\n <luoxingyu@huawei.com>, <zhouguoyang@huawei.com>, <yin.yinshi@huawei.com>,\n <david.yangxiaoliang@huawei.com>, <zhaohui8@huawei.com>,\n <zhengjingzhou@huawei.com>, <guojian365@huawei.com>, Xiaoyun wang\n <cloud.wangxiaoyun@huawei.com>", "Date": "Sat, 25 Jul 2020 11:48:24 +0800", "Message-ID": "\n <1708e8d459d3888316a70d4eabfc3172c67eb0e9.1595648149.git.cloud.wangxiaoyun@huawei.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<cover.1595648149.git.cloud.wangxiaoyun@huawei.com>", "References": "<cover.1595648149.git.cloud.wangxiaoyun@huawei.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.175.119.39]", "X-CFilter-Loop": "Reflected", "Subject": "[dpdk-dev] [PATCH v1 3/4] net/hinic/base: modify vhd type for SDI", "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": "For ovs offload scenario, when fw processes the virtio header,\nthere is no need to offset; and for standard card scenarios,\nfw does not care about the vhd_type parameter, so in order to\nbe compatible with the two scenarios, use 0 offset instead.\n\nSigned-off-by: Xiaoyun wang <cloud.wangxiaoyun@huawei.com>\n---\n drivers/net/hinic/base/hinic_pmd_nicio.c | 2 +-\n drivers/net/hinic/base/hinic_pmd_nicio.h | 5 +++++\n 2 files changed, 6 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/hinic/base/hinic_pmd_nicio.c b/drivers/net/hinic/base/hinic_pmd_nicio.c\nindex 2914e99..576fe59 100644\n--- a/drivers/net/hinic/base/hinic_pmd_nicio.c\n+++ b/drivers/net/hinic/base/hinic_pmd_nicio.c\n@@ -578,7 +578,7 @@ int hinic_init_qp_ctxts(struct hinic_hwdev *hwdev)\n \trx_buf_sz = nic_io->rq_buf_size;\n \n \t/* update rx buf size to function table */\n-\terr = hinic_set_rx_vhd_mode(hwdev, 0, rx_buf_sz);\n+\terr = hinic_set_rx_vhd_mode(hwdev, HINIC_VHD_TYPE_0B, rx_buf_sz);\n \tif (err) {\n \t\tPMD_DRV_LOG(ERR, \"Set rx vhd mode failed, rc: %d\", err);\n \t\treturn err;\ndiff --git a/drivers/net/hinic/base/hinic_pmd_nicio.h b/drivers/net/hinic/base/hinic_pmd_nicio.h\nindex 9a487d0..600c073 100644\n--- a/drivers/net/hinic/base/hinic_pmd_nicio.h\n+++ b/drivers/net/hinic/base/hinic_pmd_nicio.h\n@@ -8,6 +8,11 @@\n #define RX_BUF_LEN_16K\t\t\t16384\n #define RX_BUF_LEN_1_5K\t\t\t1536\n \n+/* vhd type */\n+#define HINIC_VHD_TYPE_0B\t\t2\n+#define HINIC_VHD_TYPE_10B\t\t1\n+#define HINIC_VHD_TYPE_12B\t\t0\n+\n #define HINIC_Q_CTXT_MAX\t\t42\n \n /* performance: ci addr RTE_CACHE_SIZE(64B) alignment */\n", "prefixes": [ "v1", "3/4" ] }{ "id": 74799, "url": "