Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/13472/?format=api
http://patches.dpdk.org/api/patches/13472/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1465744997-15487-2-git-send-email-bernard.iremonger@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": "<1465744997-15487-2-git-send-email-bernard.iremonger@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1465744997-15487-2-git-send-email-bernard.iremonger@intel.com", "date": "2016-06-12T15:23:09", "name": "[dpdk-dev,v3,1/9] app/testpmd: add function port_is_forwarding", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "acb9100d58e0abf77815d42b97f946c663f5c85b", "submitter": { "id": 91, "url": "http://patches.dpdk.org/api/people/91/?format=api", "name": "Iremonger, Bernard", "email": "bernard.iremonger@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1465744997-15487-2-git-send-email-bernard.iremonger@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/13472/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/13472/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 BDD3437B2;\n\tSun, 12 Jun 2016 17:23:31 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 922932BE0\n\tfor <dev@dpdk.org>; Sun, 12 Jun 2016 17:23:30 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga103.fm.intel.com with ESMTP; 12 Jun 2016 08:23:29 -0700", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga002.jf.intel.com with ESMTP; 12 Jun 2016 08:23:28 -0700", "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tu5CFNR0V023276; Sun, 12 Jun 2016 16:23:27 +0100", "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id u5CFNREo015539;\n\tSun, 12 Jun 2016 16:23:27 +0100", "(from bairemon@localhost)\n\tby sivswdev01.ir.intel.com with id u5CFNR49015535;\n\tSun, 12 Jun 2016 16:23:27 +0100" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.26,462,1459839600\"; d=\"scan'208\";a=\"996069603\"", "From": "Bernard Iremonger <bernard.iremonger@intel.com>", "To": "dev@dpdk.org", "Cc": "pablo.de.lara.guarch@intel.com,\n\tBernard Iremonger <bernard.iremonger@intel.com>", "Date": "Sun, 12 Jun 2016 16:23:09 +0100", "Message-Id": "<1465744997-15487-2-git-send-email-bernard.iremonger@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1465744997-15487-1-git-send-email-bernard.iremonger@intel.com>", "References": "<1462462795-18767-1-git-send-email-bernard.iremonger@intel.com>\n\t<1465744997-15487-1-git-send-email-bernard.iremonger@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 1/9] app/testpmd: add function\n\tport_is_forwarding", "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": "Add function port_is_forwarding to check whether\na port is forwarding or not.\n\nSigned-off-by: Bernard Iremonger <bernard.iremonger@intel.com>\n---\n app/test-pmd/config.c | 18 +++++++++++++++++-\n app/test-pmd/testpmd.h | 3 ++-\n 2 files changed, 19 insertions(+), 2 deletions(-)", "diff": "diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c\nindex 1c552e4..f434999 100644\n--- a/app/test-pmd/config.c\n+++ b/app/test-pmd/config.c\n@@ -1,7 +1,7 @@\n /*-\n * BSD LICENSE\n *\n- * Copyright(c) 2010-2014 Intel Corporation. All rights reserved.\n+ * Copyright(c) 2010-2016 Intel Corporation. All rights reserved.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n@@ -1565,6 +1565,22 @@ set_fwd_ports_number(uint16_t nb_pt)\n \t (unsigned int) nb_fwd_ports);\n }\n \n+int\n+port_is_forwarding(portid_t port_id)\n+{\n+\tunsigned int i;\n+\n+\tif (port_id_is_invalid(port_id, ENABLED_WARN))\n+\t\treturn -1;\n+\n+\tfor (i = 0; i < nb_fwd_ports; i++) {\n+\t\tif (fwd_ports_ids[i] == port_id)\n+\t\t\treturn 1;\n+\t}\n+\n+\treturn 0;\n+}\n+\n void\n set_nb_pkt_per_burst(uint16_t nb)\n {\ndiff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h\nindex 0f72ca1..aa4bdac 100644\n--- a/app/test-pmd/testpmd.h\n+++ b/app/test-pmd/testpmd.h\n@@ -1,7 +1,7 @@\n /*-\n * BSD LICENSE\n *\n- * Copyright(c) 2010-2015 Intel Corporation. All rights reserved.\n+ * Copyright(c) 2010-2016 Intel Corporation. All rights reserved.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n@@ -500,6 +500,7 @@ void set_fwd_lcores_number(uint16_t nb_lc);\n void set_fwd_ports_list(unsigned int *portlist, unsigned int nb_pt);\n void set_fwd_ports_mask(uint64_t portmask);\n void set_fwd_ports_number(uint16_t nb_pt);\n+int port_is_forwarding(portid_t port_id);\n \n void rx_vlan_strip_set(portid_t port_id, int on);\n void rx_vlan_strip_set_on_queue(portid_t port_id, uint16_t queue_id, int on);\n", "prefixes": [ "dpdk-dev", "v3", "1/9" ] }{ "id": 13472, "url": "