Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/94784/?format=api
https://patches.dpdk.org/api/patches/94784/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1624487698-31136-9-git-send-email-jizh@linux.microsoft.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": "<1624487698-31136-9-git-send-email-jizh@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1624487698-31136-9-git-send-email-jizh@linux.microsoft.com", "date": "2021-06-23T22:34:57", "name": "[v14,8/9] app/testpmd: fix unused function warnings", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "b6505aea1b61caa6a74744b80ff06c545ff27854", "submitter": { "id": 1934, "url": "https://patches.dpdk.org/api/people/1934/?format=api", "name": "Jie Zhou", "email": "jizh@linux.microsoft.com" }, "delegate": { "id": 3961, "url": "https://patches.dpdk.org/api/users/3961/?format=api", "username": "arybchenko", "first_name": "Andrew", "last_name": "Rybchenko", "email": "andrew.rybchenko@oktetlabs.ru" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1624487698-31136-9-git-send-email-jizh@linux.microsoft.com/mbox/", "series": [ { "id": 17465, "url": "https://patches.dpdk.org/api/series/17465/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17465", "date": "2021-06-23T22:34:50", "name": "app/testpmd: enable testpmd on Windows", "version": 14, "mbox": "https://patches.dpdk.org/series/17465/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/94784/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/94784/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D1E8BA0C41;\n\tThu, 24 Jun 2021 00:35:52 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AE0224117C;\n\tThu, 24 Jun 2021 00:35:15 +0200 (CEST)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id C8CBE40DFD;\n Thu, 24 Jun 2021 00:35:05 +0200 (CEST)", "from\n linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net\n (linux.microsoft.com [13.77.154.182])\n by linux.microsoft.com (Postfix) with ESMTPSA id F0A4720B83F8;\n Wed, 23 Jun 2021 15:35:04 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com F0A4720B83F8", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1624487705;\n bh=ZrYKHbqT6aon5GXkuxTGp9CPWuW86/IGPtkX+ULmydU=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=j7KbZTFrivh5uqGz9nnhuFcYyFicWrZ7wxjP4Hx+MmLLepug1Uv43JT2SMhdoMP8P\n RO4oQMifaIUzwusJLl9GxEWrACcv/hm3EJ5fR4aDU33F865eU2uyj35whP3lmPu837\n eqxTNooNqmZDQm8mXHcRy14/f5ehQlIODv4Y87to=", "From": "Jie Zhou <jizh@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "dmitry.kozliuk@gmail.com, xiaoyun.li@intel.com, roretzla@microsoft.com,\n talshn@nvidia.com, pallavi.kadam@intel.com, andrew.rybchenko@oktetlabs.ru,\n thomas@monjalon.net, bruce.richardson@intel.com, ferruh.yigit@intel.com,\n konstantin.ananyev@intel.com, stable@dpdk.org", "Date": "Wed, 23 Jun 2021 15:34:57 -0700", "Message-Id": "<1624487698-31136-9-git-send-email-jizh@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1624487698-31136-1-git-send-email-jizh@linux.microsoft.com>", "References": "<1620241931-28435-1-git-send-email-jizh@linux.microsoft.com>\n <1624487698-31136-1-git-send-email-jizh@linux.microsoft.com>", "Subject": "[dpdk-dev] [PATCH v14 8/9] app/testpmd: fix unused function warnings", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Function print_fdir_mask and print_fdir_flex_payload is only called\nwhen either i40e or ixgbe presents. Add #if defined to remove\n\"unused function\" compilation warning.\n\nSigned-off-by: Jie Zhou <jizh@microsoft.com>\nSigned-off-by: Jie Zhou <jizh@linux.microsoft.com>\nAcked-by: Tal Shnaiderman <talshn@nvidia.com>\n---\n app/test-pmd/config.c | 82 +++++++++++++++++++++----------------------\n 1 file changed, 41 insertions(+), 41 deletions(-)", "diff": "diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c\nindex 79526796e9..3723317ab4 100644\n--- a/app/test-pmd/config.c\n+++ b/app/test-pmd/config.c\n@@ -4449,6 +4449,47 @@ set_record_burst_stats(uint8_t on_off)\n \trecord_burst_stats = on_off;\n }\n \n+static char*\n+flowtype_to_str(uint16_t flow_type)\n+{\n+\tstruct flow_type_info {\n+\t\tchar str[32];\n+\t\tuint16_t ftype;\n+\t};\n+\n+\tuint8_t i;\n+\tstatic struct flow_type_info flowtype_str_table[] = {\n+\t\t{\"raw\", RTE_ETH_FLOW_RAW},\n+\t\t{\"ipv4\", RTE_ETH_FLOW_IPV4},\n+\t\t{\"ipv4-frag\", RTE_ETH_FLOW_FRAG_IPV4},\n+\t\t{\"ipv4-tcp\", RTE_ETH_FLOW_NONFRAG_IPV4_TCP},\n+\t\t{\"ipv4-udp\", RTE_ETH_FLOW_NONFRAG_IPV4_UDP},\n+\t\t{\"ipv4-sctp\", RTE_ETH_FLOW_NONFRAG_IPV4_SCTP},\n+\t\t{\"ipv4-other\", RTE_ETH_FLOW_NONFRAG_IPV4_OTHER},\n+\t\t{\"ipv6\", RTE_ETH_FLOW_IPV6},\n+\t\t{\"ipv6-frag\", RTE_ETH_FLOW_FRAG_IPV6},\n+\t\t{\"ipv6-tcp\", RTE_ETH_FLOW_NONFRAG_IPV6_TCP},\n+\t\t{\"ipv6-udp\", RTE_ETH_FLOW_NONFRAG_IPV6_UDP},\n+\t\t{\"ipv6-sctp\", RTE_ETH_FLOW_NONFRAG_IPV6_SCTP},\n+\t\t{\"ipv6-other\", RTE_ETH_FLOW_NONFRAG_IPV6_OTHER},\n+\t\t{\"l2_payload\", RTE_ETH_FLOW_L2_PAYLOAD},\n+\t\t{\"port\", RTE_ETH_FLOW_PORT},\n+\t\t{\"vxlan\", RTE_ETH_FLOW_VXLAN},\n+\t\t{\"geneve\", RTE_ETH_FLOW_GENEVE},\n+\t\t{\"nvgre\", RTE_ETH_FLOW_NVGRE},\n+\t\t{\"vxlan-gpe\", RTE_ETH_FLOW_VXLAN_GPE},\n+\t};\n+\n+\tfor (i = 0; i < RTE_DIM(flowtype_str_table); i++) {\n+\t\tif (flowtype_str_table[i].ftype == flow_type)\n+\t\t\treturn flowtype_str_table[i].str;\n+\t}\n+\n+\treturn NULL;\n+}\n+\n+#if defined(RTE_NET_I40E) || defined(RTE_NET_IXGBE)\n+\n static inline void\n print_fdir_mask(struct rte_eth_fdir_masks *mask)\n {\n@@ -4508,47 +4549,6 @@ print_fdir_flex_payload(struct rte_eth_fdir_flex_conf *flex_conf, uint32_t num)\n \tprintf(\"\\n\");\n }\n \n-static char *\n-flowtype_to_str(uint16_t flow_type)\n-{\n-\tstruct flow_type_info {\n-\t\tchar str[32];\n-\t\tuint16_t ftype;\n-\t};\n-\n-\tuint8_t i;\n-\tstatic struct flow_type_info flowtype_str_table[] = {\n-\t\t{\"raw\", RTE_ETH_FLOW_RAW},\n-\t\t{\"ipv4\", RTE_ETH_FLOW_IPV4},\n-\t\t{\"ipv4-frag\", RTE_ETH_FLOW_FRAG_IPV4},\n-\t\t{\"ipv4-tcp\", RTE_ETH_FLOW_NONFRAG_IPV4_TCP},\n-\t\t{\"ipv4-udp\", RTE_ETH_FLOW_NONFRAG_IPV4_UDP},\n-\t\t{\"ipv4-sctp\", RTE_ETH_FLOW_NONFRAG_IPV4_SCTP},\n-\t\t{\"ipv4-other\", RTE_ETH_FLOW_NONFRAG_IPV4_OTHER},\n-\t\t{\"ipv6\", RTE_ETH_FLOW_IPV6},\n-\t\t{\"ipv6-frag\", RTE_ETH_FLOW_FRAG_IPV6},\n-\t\t{\"ipv6-tcp\", RTE_ETH_FLOW_NONFRAG_IPV6_TCP},\n-\t\t{\"ipv6-udp\", RTE_ETH_FLOW_NONFRAG_IPV6_UDP},\n-\t\t{\"ipv6-sctp\", RTE_ETH_FLOW_NONFRAG_IPV6_SCTP},\n-\t\t{\"ipv6-other\", RTE_ETH_FLOW_NONFRAG_IPV6_OTHER},\n-\t\t{\"l2_payload\", RTE_ETH_FLOW_L2_PAYLOAD},\n-\t\t{\"port\", RTE_ETH_FLOW_PORT},\n-\t\t{\"vxlan\", RTE_ETH_FLOW_VXLAN},\n-\t\t{\"geneve\", RTE_ETH_FLOW_GENEVE},\n-\t\t{\"nvgre\", RTE_ETH_FLOW_NVGRE},\n-\t\t{\"vxlan-gpe\", RTE_ETH_FLOW_VXLAN_GPE},\n-\t};\n-\n-\tfor (i = 0; i < RTE_DIM(flowtype_str_table); i++) {\n-\t\tif (flowtype_str_table[i].ftype == flow_type)\n-\t\t\treturn flowtype_str_table[i].str;\n-\t}\n-\n-\treturn NULL;\n-}\n-\n-#if defined(RTE_NET_I40E) || defined(RTE_NET_IXGBE)\n-\n static inline void\n print_fdir_flex_mask(struct rte_eth_fdir_flex_conf *flex_conf, uint32_t num)\n {\n", "prefixes": [ "v14", "8/9" ] }{ "id": 94784, "url": "