Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/12648/?format=api
http://patches.dpdk.org/api/patches/12648/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1462873202-3314-5-git-send-email-reshma.pattan@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": "<1462873202-3314-5-git-send-email-reshma.pattan@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1462873202-3314-5-git-send-email-reshma.pattan@intel.com", "date": "2016-05-10T09:40:01", "name": "[dpdk-dev,PATCHv2,4/5] app/test-pmd: add pdump initialization uninitialization", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a50333a4ae07da2d06f6b4bbc03a9f41b558c22c", "submitter": { "id": 70, "url": "http://patches.dpdk.org/api/people/70/?format=api", "name": "Pattan, Reshma", "email": "reshma.pattan@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1462873202-3314-5-git-send-email-reshma.pattan@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/12648/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/12648/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 568A89A9D;\n\tTue, 10 May 2016 11:40:11 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 20CD49A8F\n\tfor <dev@dpdk.org>; Tue, 10 May 2016 11:40:07 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga104.fm.intel.com with ESMTP; 10 May 2016 02:40:07 -0700", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga001.jf.intel.com with ESMTP; 10 May 2016 02:40:06 -0700", "from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com\n\t[10.237.217.46])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tu4A9e6xf003334; Tue, 10 May 2016 10:40:06 +0100", "from sivswdev02.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev02.ir.intel.com with ESMTP id u4A9e5KL003389;\n\tTue, 10 May 2016 10:40:05 +0100", "(from reshmapa@localhost)\n\tby sivswdev02.ir.intel.com with id u4A9e5dY003385;\n\tTue, 10 May 2016 10:40:05 +0100" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.24,604,1455004800\"; d=\"scan'208\";a=\"949839709\"", "From": "Reshma Pattan <reshma.pattan@intel.com>", "To": "dev@dpdk.org", "Cc": "Reshma Pattan <reshma.pattan@intel.com>", "Date": "Tue, 10 May 2016 10:40:01 +0100", "Message-Id": "<1462873202-3314-5-git-send-email-reshma.pattan@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1462873202-3314-1-git-send-email-reshma.pattan@intel.com>", "References": "<1462532139-17848-1-git-send-email-reshma.pattan@intel.com>\n\t<1462873202-3314-1-git-send-email-reshma.pattan@intel.com>", "Subject": "[dpdk-dev] [PATCHv2 4/5] app/test-pmd: add pdump initialization\n\tuninitialization", "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": "call rte_pdump_init and rte_pdump_uninit for packet\ncapturing initialization and uninitialization.\n\nSigned-off-by: Reshma Pattan <reshma.pattan@intel.com>\n---\n app/test-pmd/testpmd.c | 6 ++++++\n 1 file changed, 6 insertions(+)", "diff": "diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c\nindex 26a174c..e131363 100644\n--- a/app/test-pmd/testpmd.c\n+++ b/app/test-pmd/testpmd.c\n@@ -75,6 +75,7 @@\n #ifdef RTE_LIBRTE_PMD_XENVIRT\n #include <rte_eth_xenvirt.h>\n #endif\n+#include <rte_pdump.h>\n \n #include \"testpmd.h\"\n #include \"mempool_osdep.h\"\n@@ -2018,6 +2019,8 @@ signal_handler(int signum)\n \tif (signum == SIGINT || signum == SIGTERM) {\n \t\tprintf(\"\\nSignal %d received, preparing to exit...\\n\",\n \t\t\t\tsignum);\n+\t\t/* uninitialize packet capture framework */\n+\t\trte_pdump_uninit();\n \t\tforce_quit();\n \t\t/* exit with the expected status */\n \t\tsignal(signum, SIG_DFL);\n@@ -2038,6 +2041,9 @@ main(int argc, char** argv)\n \tif (diag < 0)\n \t\trte_panic(\"Cannot init EAL\\n\");\n \n+\t/* initialize packet capture framework */\n+\trte_pdump_init();\n+\n \tnb_ports = (portid_t) rte_eth_dev_count();\n \tif (nb_ports == 0)\n \t\tRTE_LOG(WARNING, EAL, \"No probed ethernet devices\\n\");\n", "prefixes": [ "dpdk-dev", "PATCHv2", "4/5" ] }{ "id": 12648, "url": "