Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/12331/?format=api
http://patches.dpdk.org/api/patches/12331/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1462224230-19460-3-git-send-email-yuanhan.liu@linux.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": "<1462224230-19460-3-git-send-email-yuanhan.liu@linux.intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1462224230-19460-3-git-send-email-yuanhan.liu@linux.intel.com", "date": "2016-05-02T21:23:44", "name": "[dpdk-dev,v2,2/8] examples/vhost: remove unused macro and struct", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "68e803c226c7a5e6329614eec84a9e1b571aea12", "submitter": { "id": 307, "url": "http://patches.dpdk.org/api/people/307/?format=api", "name": "Yuanhan Liu", "email": "yuanhan.liu@linux.intel.com" }, "delegate": { "id": 355, "url": "http://patches.dpdk.org/api/users/355/?format=api", "username": "yliu", "first_name": "Yuanhan", "last_name": "Liu", "email": "yuanhan.liu@linux.intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1462224230-19460-3-git-send-email-yuanhan.liu@linux.intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/12331/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/12331/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 9EFF758D4;\n\tMon, 2 May 2016 23:20:32 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 5387E58D4\n\tfor <dev@dpdk.org>; Mon, 2 May 2016 23:20:29 +0200 (CEST)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby fmsmga104.fm.intel.com with ESMTP; 02 May 2016 14:20:30 -0700", "from yliu-dev.sh.intel.com ([10.239.67.162])\n\tby fmsmga004.fm.intel.com with ESMTP; 02 May 2016 14:20:28 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.24,569,1455004800\"; d=\"scan'208\";a=\"95880083\"", "From": "Yuanhan Liu <yuanhan.liu@linux.intel.com>", "To": "dev@dpdk.org", "Cc": "huawei.xie@intel.com,\n\tYuanhan Liu <yuanhan.liu@linux.intel.com>", "Date": "Mon, 2 May 2016 14:23:44 -0700", "Message-Id": "<1462224230-19460-3-git-send-email-yuanhan.liu@linux.intel.com>", "X-Mailer": "git-send-email 1.9.0", "In-Reply-To": "<1462224230-19460-1-git-send-email-yuanhan.liu@linux.intel.com>", "References": "<1461645951-14603-1-git-send-email-yuanhan.liu@linux.intel.com>\n\t<1462224230-19460-1-git-send-email-yuanhan.liu@linux.intel.com>", "Subject": "[dpdk-dev] [PATCH v2 2/8] examples/vhost: remove unused macro and\n\tstruct", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <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": "Interestingly, DESC_PER_CACHELINE has never been used since the\nintroduction of vhost example. Remove it.\n\nvlan_ethhdr struct and VLAN_ETH_HLEN macro reference had been removed\nby commit 4d50b6acbd95 (\"examples/vhost: adapt Tx routing to lib\"), but\nhad forgot to remove the definition.\n\nFixes: 4d50b6acbd95 (\"examples/vhost: adapt Tx routing to lib\")\n\nSigned-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>\n---\n examples/vhost/main.c | 14 --------------\n 1 file changed, 14 deletions(-)", "diff": "diff --git a/examples/vhost/main.c b/examples/vhost/main.c\nindex 9452bab..9445100 100644\n--- a/examples/vhost/main.c\n+++ b/examples/vhost/main.c\n@@ -111,9 +111,6 @@\n /* Used to compare MAC addresses. */\n #define MAC_ADDR_CMP 0xFFFFFFFFFFFFULL\n \n-/* Number of descriptors per cacheline. */\n-#define DESC_PER_CACHELINE (RTE_CACHE_LINE_SIZE / sizeof(struct vring_desc))\n-\n /* mask of enabled ports */\n static uint32_t enabled_port_mask = 0;\n \n@@ -236,18 +233,7 @@ struct mbuf_table {\n /* TX queue for each data core. */\n struct mbuf_table lcore_tx_queue[RTE_MAX_LCORE];\n \n-/* Vlan header struct used to insert vlan tags on TX. */\n-struct vlan_ethhdr {\n-\tunsigned char h_dest[ETH_ALEN];\n-\tunsigned char h_source[ETH_ALEN];\n-\t__be16 h_vlan_proto;\n-\t__be16 h_vlan_TCI;\n-\t__be16 h_vlan_encapsulated_proto;\n-};\n-\n-/* Header lengths. */\n #define VLAN_HLEN 4\n-#define VLAN_ETH_HLEN 18\n \n /* Per-device statistics struct */\n struct device_statistics {\n", "prefixes": [ "dpdk-dev", "v2", "2/8" ] }{ "id": 12331, "url": "