Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/42056/?format=api
http://patches.dpdk.org/api/patches/42056/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180702135642.52577-3-yong.liu@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": "<20180702135642.52577-3-yong.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20180702135642.52577-3-yong.liu@intel.com", "date": "2018-07-02T13:56:35", "name": "[v5,2/9] net/virtio: add in-order feature bit definition", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "097e79329455b90524e9908693b82ff49a5916d7", "submitter": { "id": 17, "url": "http://patches.dpdk.org/api/people/17/?format=api", "name": "Marvin Liu", "email": "yong.liu@intel.com" }, "delegate": { "id": 2642, "url": "http://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180702135642.52577-3-yong.liu@intel.com/mbox/", "series": [ { "id": 345, "url": "http://patches.dpdk.org/api/series/345/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=345", "date": "2018-07-02T13:56:33", "name": "support in-order feature", "version": 5, "mbox": "http://patches.dpdk.org/series/345/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/42056/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/42056/checks/", "tags": {}, "related": [], "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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0D7BA4CA6;\n\tMon, 2 Jul 2018 08:11:13 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id B9A5E1D7\n\tfor <dev@dpdk.org>; Mon, 2 Jul 2018 08:11:08 +0200 (CEST)", "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t01 Jul 2018 23:11:08 -0700", "from dpdk-test32.sh.intel.com ([10.67.119.193])\n\tby orsmga005.jf.intel.com with ESMTP; 01 Jul 2018 23:11:07 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.51,298,1526367600\"; d=\"scan'208\";a=\"237141559\"", "From": "Marvin Liu <yong.liu@intel.com>", "To": "maxime.coquelin@redhat.com,\n\ttiwei.bie@intel.com", "Cc": "zhihong.wang@intel.com,\n\tdev@dpdk.org,\n\tMarvin Liu <yong.liu@intel.com>", "Date": "Mon, 2 Jul 2018 21:56:35 +0800", "Message-Id": "<20180702135642.52577-3-yong.liu@intel.com>", "X-Mailer": "git-send-email 2.17.0", "In-Reply-To": "<20180702135642.52577-1-yong.liu@intel.com>", "References": "<20180702135642.52577-1-yong.liu@intel.com>", "Subject": "[dpdk-dev] [PATCH v5 2/9] net/virtio: add in-order feature bit\n\tdefinition", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "If VIRTIO_F_IN_ORDER has been negotiated, driver will use descriptors in\nring order: starting from offset 0 in the table, and wrapping around at\nthe end of the table. Also introduce use_inorder_[rt]x flag for\nselection of IN_ORDER [RT]x handlers.\n\nSigned-off-by: Marvin Liu <yong.liu@intel.com>\nReviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>", "diff": "diff --git a/drivers/net/virtio/virtio_pci.h b/drivers/net/virtio/virtio_pci.h\nindex a28ba8339..77f805df6 100644\n--- a/drivers/net/virtio/virtio_pci.h\n+++ b/drivers/net/virtio/virtio_pci.h\n@@ -121,6 +121,12 @@ struct virtnet_ctl;\n #define VIRTIO_TRANSPORT_F_START 28\n #define VIRTIO_TRANSPORT_F_END 34\n \n+/*\n+ * Inorder feature indicates that all buffers are used by the device\n+ * in the same order in which they have been made available.\n+ */\n+#define VIRTIO_F_IN_ORDER 35\n+\n /* The Guest publishes the used index for which it expects an interrupt\n * at the end of the avail ring. Host should ignore the avail->flags field. */\n /* The Host publishes the avail index for which it expects a kick\n@@ -233,6 +239,8 @@ struct virtio_hw {\n \tuint8_t modern;\n \tuint8_t use_simple_rx;\n \tuint8_t use_simple_tx;\n+\tuint8_t use_inorder_rx;\n+\tuint8_t use_inorder_tx;\n \tuint16_t port_id;\n \tuint8_t mac_addr[ETHER_ADDR_LEN];\n \tuint32_t notify_off_multiplier;\ndiff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c\nindex 1c102ca72..8747cbf94 100644\n--- a/drivers/net/virtio/virtio_user_ethdev.c\n+++ b/drivers/net/virtio/virtio_user_ethdev.c\n@@ -441,6 +441,8 @@ virtio_user_eth_dev_alloc(struct rte_vdev_device *vdev)\n \thw->modern = 0;\n \thw->use_simple_rx = 0;\n \thw->use_simple_tx = 0;\n+\thw->use_inorder_rx = 0;\n+\thw->use_inorder_tx = 0;\n \thw->virtio_user_dev = dev;\n \treturn eth_dev;\n }\n", "prefixes": [ "v5", "2/9" ] }{ "id": 42056, "url": "