Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/21270/?format=api
https://patches.dpdk.org/api/patches/21270/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1488534682-3494-13-git-send-email-yuanhan.liu@linux.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": "<1488534682-3494-13-git-send-email-yuanhan.liu@linux.intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1488534682-3494-13-git-send-email-yuanhan.liu@linux.intel.com", "date": "2017-03-03T09:51:17", "name": "[dpdk-dev,12/17] vhost: drop the Rx and Tx queue macro", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "8b9ec3399c4f9f72ad5356227330cd1624585ef6", "submitter": { "id": 307, "url": "https://patches.dpdk.org/api/people/307/?format=api", "name": "Yuanhan Liu", "email": "yuanhan.liu@linux.intel.com" }, "delegate": { "id": 355, "url": "https://patches.dpdk.org/api/users/355/?format=api", "username": "yliu", "first_name": "Yuanhan", "last_name": "Liu", "email": "yuanhan.liu@linux.intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1488534682-3494-13-git-send-email-yuanhan.liu@linux.intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/21270/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/21270/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 06F87F964;\n\tFri, 3 Mar 2017 10:53:27 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id D08466CB4\n\tfor <dev@dpdk.org>; Fri, 3 Mar 2017 10:53:00 +0100 (CET)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga105.jf.intel.com with ESMTP; 03 Mar 2017 01:53:00 -0800", "from yliu-dev.sh.intel.com ([10.239.67.162])\n\tby fmsmga002.fm.intel.com with ESMTP; 03 Mar 2017 01:52:59 -0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos; i=\"5.35,236,1484035200\"; d=\"scan'208\";\n\ta=\"1137400929\"", "From": "Yuanhan Liu <yuanhan.liu@linux.intel.com>", "To": "dev@dpdk.org", "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>,\n\tHarris James R <james.r.harris@intel.com>,\n\tLiu Changpeng <changpeng.liu@intel.com>,\n\tYuanhan Liu <yuanhan.liu@linux.intel.com>", "Date": "Fri, 3 Mar 2017 17:51:17 +0800", "Message-Id": "<1488534682-3494-13-git-send-email-yuanhan.liu@linux.intel.com>", "X-Mailer": "git-send-email 1.9.0", "In-Reply-To": "<1488534682-3494-1-git-send-email-yuanhan.liu@linux.intel.com>", "References": "<1488534682-3494-1-git-send-email-yuanhan.liu@linux.intel.com>", "Subject": "[dpdk-dev] [PATCH 12/17] vhost: drop the Rx and Tx queue macro", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "They are virti-net specific and should be defined inside the virtio-net\ndriver.\n\nSigned-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>\n---\n drivers/net/vhost/rte_eth_vhost.c | 2 ++\n examples/tep_termination/main.h | 2 ++\n examples/vhost/main.h | 2 ++\n lib/librte_vhost/rte_virtio_net.h | 3 ---\n 4 files changed, 6 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c\nindex 135fec1..450d167 100644\n--- a/drivers/net/vhost/rte_eth_vhost.c\n+++ b/drivers/net/vhost/rte_eth_vhost.c\n@@ -45,6 +45,8 @@\n \n #include \"rte_eth_vhost.h\"\n \n+enum {VIRTIO_RXQ, VIRTIO_TXQ, VIRTIO_QNUM};\n+\n #define ETH_VHOST_IFACE_ARG\t\t\"iface\"\n #define ETH_VHOST_QUEUES_ARG\t\t\"queues\"\n #define ETH_VHOST_CLIENT_ARG\t\t\"client\"\ndiff --git a/examples/tep_termination/main.h b/examples/tep_termination/main.h\nindex c0ea766..8ed817d 100644\n--- a/examples/tep_termination/main.h\n+++ b/examples/tep_termination/main.h\n@@ -54,6 +54,8 @@\n /* Max number of devices. Limited by the application. */\n #define MAX_DEVICES 64\n \n+enum {VIRTIO_RXQ, VIRTIO_TXQ, VIRTIO_QNUM};\n+\n /* Per-device statistics struct */\n struct device_statistics {\n \tuint64_t tx_total;\ndiff --git a/examples/vhost/main.h b/examples/vhost/main.h\nindex 6bb42e8..7a3d251 100644\n--- a/examples/vhost/main.h\n+++ b/examples/vhost/main.h\n@@ -41,6 +41,8 @@\n #define RTE_LOGTYPE_VHOST_DATA RTE_LOGTYPE_USER2\n #define RTE_LOGTYPE_VHOST_PORT RTE_LOGTYPE_USER3\n \n+enum {VIRTIO_RXQ, VIRTIO_TXQ, VIRTIO_QNUM};\n+\n struct device_statistics {\n \tuint64_t\ttx;\n \tuint64_t\ttx_total;\ndiff --git a/lib/librte_vhost/rte_virtio_net.h b/lib/librte_vhost/rte_virtio_net.h\nindex 280d9c2..fa98d29 100644\n--- a/lib/librte_vhost/rte_virtio_net.h\n+++ b/lib/librte_vhost/rte_virtio_net.h\n@@ -55,9 +55,6 @@\n #define RTE_VHOST_USER_NO_RECONNECT\t(1ULL << 1)\n #define RTE_VHOST_USER_DEQUEUE_ZERO_COPY\t(1ULL << 2)\n \n-/* Enum for virtqueue management. */\n-enum {VIRTIO_RXQ, VIRTIO_TXQ, VIRTIO_QNUM};\n-\n /**\n * Information relating to memory regions including offsets to\n * addresses in QEMUs memory file.\n", "prefixes": [ "dpdk-dev", "12/17" ] }{ "id": 21270, "url": "