Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/53580/?format=api
https://patches.dpdk.org/api/patches/53580/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190521161315.25500-9-olivier.matz@6wind.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": "<20190521161315.25500-9-olivier.matz@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190521161315.25500-9-olivier.matz@6wind.com", "date": "2019-05-21T16:13:08", "name": "[08/15] net: add rte prefix to icmp structure", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "a37acd154bdd634c3a94c1751b58352a73d9a389", "submitter": { "id": 8, "url": "https://patches.dpdk.org/api/people/8/?format=api", "name": "Olivier Matz", "email": "olivier.matz@6wind.com" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190521161315.25500-9-olivier.matz@6wind.com/mbox/", "series": [ { "id": 4733, "url": "https://patches.dpdk.org/api/series/4733/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=4733", "date": "2019-05-21T16:13:01", "name": "prefix network structures", "version": 1, "mbox": "https://patches.dpdk.org/series/4733/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/53580/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/53580/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8FD3D5F29;\n\tTue, 21 May 2019 18:13:46 +0200 (CEST)", "from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com\n\t[62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 46D414CA6\n\tfor <dev@dpdk.org>; Tue, 21 May 2019 18:13:25 +0200 (CEST)", "from glumotte.dev.6wind.com. (unknown [10.16.0.195])\n\tby proxy.6wind.com (Postfix) with ESMTP id 2D0532B83DB;\n\tTue, 21 May 2019 18:13:25 +0200 (CEST)" ], "From": "Olivier Matz <olivier.matz@6wind.com>", "To": "dev@dpdk.org", "Cc": "stephen@networkplumber.org,\n\tferruh.yigit@intel.com", "Date": "Tue, 21 May 2019 18:13:08 +0200", "Message-Id": "<20190521161315.25500-9-olivier.matz@6wind.com>", "X-Mailer": "git-send-email 2.11.0", "In-Reply-To": "<20190521161315.25500-1-olivier.matz@6wind.com>", "References": "<20190410083218.17531-1-olivier.matz@6wind.com>\n\t<20190521161315.25500-1-olivier.matz@6wind.com>", "Subject": "[dpdk-dev] [PATCH 08/15] net: add rte prefix to icmp structure", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add 'rte_' prefix to structures:\n- rename struct icmp_hdr as struct rte_icmp_hdr.\n\nSigned-off-by: Olivier Matz <olivier.matz@6wind.com>\n---\n app/test-pmd/icmpecho.c | 4 ++--\n lib/librte_ethdev/rte_flow.h | 2 +-\n lib/librte_net/rte_icmp.h | 2 +-\n 3 files changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/app/test-pmd/icmpecho.c b/app/test-pmd/icmpecho.c\nindex c6c7cb6bd..bff0b8d9c 100644\n--- a/app/test-pmd/icmpecho.c\n+++ b/app/test-pmd/icmpecho.c\n@@ -279,7 +279,7 @@ reply_to_icmp_echo_rqsts(struct fwd_stream *fs)\n \tstruct rte_vlan_hdr *vlan_h;\n \tstruct rte_arp_hdr *arp_h;\n \tstruct ipv4_hdr *ip_h;\n-\tstruct icmp_hdr *icmp_h;\n+\tstruct rte_icmp_hdr *icmp_h;\n \tstruct rte_ether_addr eth_addr;\n \tuint32_t retry;\n \tuint32_t ip_addr;\n@@ -430,7 +430,7 @@ reply_to_icmp_echo_rqsts(struct fwd_stream *fs)\n \t\t/*\n \t\t * Check if packet is a ICMP echo request.\n \t\t */\n-\t\ticmp_h = (struct icmp_hdr *) ((char *)ip_h +\n+\t\ticmp_h = (struct rte_icmp_hdr *) ((char *)ip_h +\n \t\t\t\t\t sizeof(struct ipv4_hdr));\n \t\tif (! ((ip_h->next_proto_id == IPPROTO_ICMP) &&\n \t\t (icmp_h->icmp_type == IP_ICMP_ECHO_REQUEST) &&\ndiff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h\nindex c8fa2720c..5f52359b1 100644\n--- a/lib/librte_ethdev/rte_flow.h\n+++ b/lib/librte_ethdev/rte_flow.h\n@@ -673,7 +673,7 @@ static const struct rte_flow_item_ipv6 rte_flow_item_ipv6_mask = {\n * Matches an ICMP header.\n */\n struct rte_flow_item_icmp {\n-\tstruct icmp_hdr hdr; /**< ICMP header definition. */\n+\tstruct rte_icmp_hdr hdr; /**< ICMP header definition. */\n };\n \n /** Default mask for RTE_FLOW_ITEM_TYPE_ICMP. */\ndiff --git a/lib/librte_net/rte_icmp.h b/lib/librte_net/rte_icmp.h\nindex 053b5f6a4..d0309537e 100644\n--- a/lib/librte_net/rte_icmp.h\n+++ b/lib/librte_net/rte_icmp.h\n@@ -23,7 +23,7 @@ extern \"C\" {\n /**\n * ICMP Header\n */\n-struct icmp_hdr {\n+struct rte_icmp_hdr {\n \tuint8_t icmp_type; /* ICMP packet type. */\n \tuint8_t icmp_code; /* ICMP packet code. */\n \tuint16_t icmp_cksum; /* ICMP packet checksum. */\n", "prefixes": [ "08/15" ] }{ "id": 53580, "url": "