Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/63586/?format=api
http://patchwork.dpdk.org/api/patches/63586/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20191205123847.39579-5-qi.z.zhang@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20191205123847.39579-5-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20191205123847.39579-5-qi.z.zhang@intel.com", "date": "2019-12-05T12:38:39", "name": "[04/12] net/ice/base: cleanup format of static const declarations", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "0b0e091047874b045173780270aa0184d608610e", "submitter": { "id": 504, "url": "http://patchwork.dpdk.org/api/people/504/?format=api", "name": "Qi Zhang", "email": "qi.z.zhang@intel.com" }, "delegate": { "id": 31221, "url": "http://patchwork.dpdk.org/api/users/31221/?format=api", "username": "yexl", "first_name": "xiaolong", "last_name": "ye", "email": "xiaolong.ye@intel.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20191205123847.39579-5-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 7737, "url": "http://patchwork.dpdk.org/api/series/7737/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=7737", "date": "2019-12-05T12:38:35", "name": "base code update", "version": 1, "mbox": "http://patchwork.dpdk.org/series/7737/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/63586/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/63586/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 91E04A04F2;\n\tThu, 5 Dec 2019 13:36:26 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 672EC1BF9F;\n\tThu, 5 Dec 2019 13:35:55 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id 7A39C1BF8D\n for <dev@dpdk.org>; Thu, 5 Dec 2019 13:35:48 +0100 (CET)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 05 Dec 2019 04:35:47 -0800", "from dpdk51.sh.intel.com ([10.67.110.245])\n by fmsmga008.fm.intel.com with ESMTP; 05 Dec 2019 04:35:45 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.69,281,1571727600\"; d=\"scan'208\";a=\"209122737\"", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "qiming.yang@intel.com", "Cc": "xiaolong.ye@intel.com, dev@dpdk.org, Qi Zhang <qi.z.zhang@intel.com>,\n Bruce Allan <bruce.w.allan@intel.com>,\n Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>", "Date": "Thu, 5 Dec 2019 20:38:39 +0800", "Message-Id": "<20191205123847.39579-5-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.13.6", "In-Reply-To": "<20191205123847.39579-1-qi.z.zhang@intel.com>", "References": "<20191205123847.39579-1-qi.z.zhang@intel.com>", "Subject": "[dpdk-dev] [PATCH 04/12] net/ice/base: cleanup format of static\n\tconst declarations", "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 <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": "Use a format consistent with the rest of the code.\n\nSigned-off-by: Bruce Allan <bruce.w.allan@intel.com>\nSigned-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_switch.c | 40 ++++++++++++++-------------------------\n 1 file changed, 14 insertions(+), 26 deletions(-)", "diff": "diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c\nindex f8f5fde3c..3ed84ca01 100644\n--- a/drivers/net/ice/base/ice_switch.c\n+++ b/drivers/net/ice/base/ice_switch.c\n@@ -57,8 +57,7 @@ struct ice_dummy_pkt_offsets {\n \tu16 offset; /* ICE_PROTOCOL_LAST indicates end of list */\n };\n \n-static const\n-struct ice_dummy_pkt_offsets dummy_gre_tcp_packet_offsets[] = {\n+static const struct ice_dummy_pkt_offsets dummy_gre_tcp_packet_offsets[] = {\n \t{ ICE_MAC_OFOS,\t\t0 },\n \t{ ICE_ETYPE_OL,\t\t12 },\n \t{ ICE_IPV4_OFOS,\t14 },\n@@ -69,8 +68,7 @@ struct ice_dummy_pkt_offsets dummy_gre_tcp_packet_offsets[] = {\n \t{ ICE_PROTOCOL_LAST,\t0 },\n };\n \n-static const\n-u8 dummy_gre_tcp_packet[] = {\n+static const u8 dummy_gre_tcp_packet[] = {\n \t0x00, 0x00, 0x00, 0x00,\t/* ICE_MAC_OFOS 0 */\n \t0x00, 0x00, 0x00, 0x00,\n \t0x00, 0x00, 0x00, 0x00,\n@@ -104,8 +102,7 @@ u8 dummy_gre_tcp_packet[] = {\n \t0x00, 0x00, 0x00, 0x00\n };\n \n-static const\n-struct ice_dummy_pkt_offsets dummy_gre_udp_packet_offsets[] = {\n+static const struct ice_dummy_pkt_offsets dummy_gre_udp_packet_offsets[] = {\n \t{ ICE_MAC_OFOS,\t\t0 },\n \t{ ICE_ETYPE_OL,\t\t12 },\n \t{ ICE_IPV4_OFOS,\t14 },\n@@ -116,8 +113,7 @@ struct ice_dummy_pkt_offsets dummy_gre_udp_packet_offsets[] = {\n \t{ ICE_PROTOCOL_LAST,\t0 },\n };\n \n-static const\n-u8 dummy_gre_udp_packet[] = {\n+static const u8 dummy_gre_udp_packet[] = {\n \t0x00, 0x00, 0x00, 0x00,\t/* ICE_MAC_OFOS 0 */\n \t0x00, 0x00, 0x00, 0x00,\n \t0x00, 0x00, 0x00, 0x00,\n@@ -148,8 +144,7 @@ u8 dummy_gre_udp_packet[] = {\n \t0x00, 0x08, 0x00, 0x00,\n };\n \n-static const\n-struct ice_dummy_pkt_offsets dummy_udp_tun_tcp_packet_offsets[] = {\n+static const struct ice_dummy_pkt_offsets dummy_udp_tun_tcp_packet_offsets[] = {\n \t{ ICE_MAC_OFOS,\t\t0 },\n \t{ ICE_ETYPE_OL,\t\t12 },\n \t{ ICE_IPV4_OFOS,\t14 },\n@@ -163,8 +158,7 @@ struct ice_dummy_pkt_offsets dummy_udp_tun_tcp_packet_offsets[] = {\n \t{ ICE_PROTOCOL_LAST,\t0 },\n };\n \n-static const\n-u8 dummy_udp_tun_tcp_packet[] = {\n+static const u8 dummy_udp_tun_tcp_packet[] = {\n \t0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */\n \t0x00, 0x00, 0x00, 0x00,\n \t0x00, 0x00, 0x00, 0x00,\n@@ -201,8 +195,7 @@ u8 dummy_udp_tun_tcp_packet[] = {\n \t0x00, 0x00, 0x00, 0x00\n };\n \n-static const\n-struct ice_dummy_pkt_offsets dummy_udp_tun_udp_packet_offsets[] = {\n+static const struct ice_dummy_pkt_offsets dummy_udp_tun_udp_packet_offsets[] = {\n \t{ ICE_MAC_OFOS,\t\t0 },\n \t{ ICE_ETYPE_OL,\t\t12 },\n \t{ ICE_IPV4_OFOS,\t14 },\n@@ -216,8 +209,7 @@ struct ice_dummy_pkt_offsets dummy_udp_tun_udp_packet_offsets[] = {\n \t{ ICE_PROTOCOL_LAST,\t0 },\n };\n \n-static const\n-u8 dummy_udp_tun_udp_packet[] = {\n+static const u8 dummy_udp_tun_udp_packet[] = {\n \t0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */\n \t0x00, 0x00, 0x00, 0x00,\n \t0x00, 0x00, 0x00, 0x00,\n@@ -387,8 +379,7 @@ static const struct ice_dummy_pkt_offsets dummy_tcp_ipv6_packet_offsets[] = {\n \t{ ICE_PROTOCOL_LAST,\t0 },\n };\n \n-static const u8\n-dummy_tcp_ipv6_packet[] = {\n+static const u8 dummy_tcp_ipv6_packet[] = {\n \t0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */\n \t0x00, 0x00, 0x00, 0x00,\n \t0x00, 0x00, 0x00, 0x00,\n@@ -465,8 +456,8 @@ static const struct ice_dummy_pkt_offsets dummy_udp_ipv6_packet_offsets[] = {\n \t{ ICE_PROTOCOL_LAST,\t0 },\n };\n \n-static const u8\n-dummy_udp_ipv6_packet[] = {\n+/* IPv6 + UDP dummy packet */\n+static const u8 dummy_udp_ipv6_packet[] = {\n \t0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */\n \t0x00, 0x00, 0x00, 0x00,\n \t0x00, 0x00, 0x00, 0x00,\n@@ -536,8 +527,7 @@ static const struct ice_dummy_pkt_offsets dummy_udp_gtp_packet_offsets[] = {\n \t{ ICE_PROTOCOL_LAST,\t0 },\n };\n \n-static const u8\n-dummy_udp_gtp_packet[] = {\n+static const u8 dummy_udp_gtp_packet[] = {\n \t0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */\n \t0x00, 0x00, 0x00, 0x00,\n \t0x00, 0x00, 0x00, 0x00,\n@@ -560,8 +550,7 @@ dummy_udp_gtp_packet[] = {\n \t0x00, 0x00, 0x00, 0x00,\n };\n \n-static const\n-struct ice_dummy_pkt_offsets dummy_pppoe_packet_offsets[] = {\n+static const struct ice_dummy_pkt_offsets dummy_pppoe_packet_offsets[] = {\n \t{ ICE_MAC_OFOS,\t\t0 },\n \t{ ICE_ETYPE_OL,\t\t12 },\n \t{ ICE_VLAN_OFOS,\t14},\n@@ -569,8 +558,7 @@ struct ice_dummy_pkt_offsets dummy_pppoe_packet_offsets[] = {\n \t{ ICE_PROTOCOL_LAST,\t0 },\n };\n \n-static const u8\n-dummy_pppoe_packet[] = {\n+static const u8 dummy_pppoe_packet[] = {\n \t0x00, 0x00, 0x00, 0x00, /* ICE_MAC_OFOS 0 */\n \t0x00, 0x00, 0x00, 0x00,\n \t0x00, 0x00, 0x00, 0x00,\n", "prefixes": [ "04/12" ] }{ "id": 63586, "url": "