Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/121538/?format=api
https://patches.dpdk.org/api/patches/121538/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230104023945.6669-1-wenwux.ma@intel.com/", "project": { "id": 1, "url": "https://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": "<20230104023945.6669-1-wenwux.ma@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230104023945.6669-1-wenwux.ma@intel.com", "date": "2023-01-04T02:39:45", "name": "vhost: fix net header settings in vhost datapath", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "414ea590fb0b6042a7a3567eda0f4b54c0a7630a", "submitter": { "id": 2163, "url": "https://patches.dpdk.org/api/people/2163/?format=api", "name": "Ma, WenwuX", "email": "wenwux.ma@intel.com" }, "delegate": { "id": 2642, "url": "https://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230104023945.6669-1-wenwux.ma@intel.com/mbox/", "series": [ { "id": 26367, "url": "https://patches.dpdk.org/api/series/26367/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26367", "date": "2023-01-04T02:39:45", "name": "vhost: fix net header settings in vhost datapath", "version": 1, "mbox": "https://patches.dpdk.org/series/26367/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/121538/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/121538/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D5395A00C2;\n\tWed, 4 Jan 2023 03:43:35 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A39C340698;\n\tWed, 4 Jan 2023 03:43:34 +0100 (CET)", "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id D0D4240697;\n Wed, 4 Jan 2023 03:43:32 +0100 (CET)", "from orsmga006.jf.intel.com ([10.7.209.51])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Jan 2023 18:43:31 -0800", "from unknown (HELO localhost.localdomain) ([10.239.252.251])\n by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Jan 2023 18:43:30 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1672800213; x=1704336213;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=uixJm7Uvd5HIr0v9XcRIg0iHDXPm9FL9qYZ8/mEL4UM=;\n b=OwV2KbQOI/UW44CUIZAp00hbJ/hpaLsBTTrusk1pxiHo7s8Q86M/smFB\n R8Ady93C/tFckEFw+RWh9metGPtHqekZbl7laxtpGh8uQ1QDW6BSwmLUH\n 6oWhTsPGw5pkXTmoAU3Ji/16/R5kv9gZgGXvHzDoMDyAnV7y9kqiAy/KD\n 5GLPN7HYHY29koh6jds+5gGQuSTzzb87zoxlC2rTWNUN6WkrF8RSBwyqJ\n PTFoUAPHnupWyZEHbW9O46Six3lysRu8PANLv41VKjiS3l6NUgHUvqk9N\n wZcr63g7pj5PGQGKTYxFjpypfEekncLslaAJZevxtFyWkB0v6Z1Xg80Y0 Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10579\"; a=\"305317503\"", "E=Sophos;i=\"5.96,297,1665471600\"; d=\"scan'208\";a=\"305317503\"", "E=McAfee;i=\"6500,9779,10579\"; a=\"632654893\"", "E=Sophos;i=\"5.96,297,1665471600\"; d=\"scan'208\";a=\"632654893\"" ], "From": "Wenwu Ma <wenwux.ma@intel.com>", "To": "dev@dpdk.org", "Cc": "Wenwu Ma <wenwux.ma@intel.com>,\n\tstable@dpdk.org", "Subject": "[PATCH] vhost: fix net header settings in vhost datapath", "Date": "Wed, 4 Jan 2023 10:39:45 +0800", "Message-Id": "<20230104023945.6669-1-wenwux.ma@intel.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "In vhost sync batch enqueue, the \"num_buffers\" of\nvirtio net header is not be set, but it should be\nset to 1 if the mrg_rxbuf feature is turned on,\nThis patch fix the issue.\n\nFixes: ef861692c398 (\"vhost: add packed ring batch enqueue\")\nCc: stable@dpdk.org\n\nSigned-off-by: Wenwu Ma <wenwux.ma@intel.com>\n---\n lib/vhost/virtio_net.c | 6 ++++++\n 1 file changed, 6 insertions(+)", "diff": "diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c\nindex cf796183a0..61d9052a57 100644\n--- a/lib/vhost/virtio_net.c\n+++ b/lib/vhost/virtio_net.c\n@@ -1493,6 +1493,12 @@ virtio_dev_rx_batch_packed_copy(struct virtio_net *dev,\n \t\t\tsizeof(struct virtio_net_hdr_mrg_rxbuf);\n \t}\n \n+\tif (rxvq_is_mergeable(dev)) {\n+\t\tvhost_for_each_try_unroll(i, 0, PACKED_BATCH_SIZE) {\n+\t\t\tASSIGN_UNLESS_EQUAL(hdrs[i]->num_buffers, 1);\n+\t\t}\n+\t}\n+\n \tvhost_for_each_try_unroll(i, 0, PACKED_BATCH_SIZE)\n \t\tvirtio_enqueue_offload(pkts[i], &hdrs[i]->hdr);\n \n", "prefixes": [] }{ "id": 121538, "url": "