From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0065.outbound.protection.outlook.com [104.47.33.65]) by dpdk.org (Postfix) with ESMTP id 274677D18 for ; Fri, 2 Jun 2017 13:21:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RYYQCLzMD66/3dtmWO87yYcmjV4lEg/q3mxs0fYXPiQ=; b=a7FfCf+zaCuvHvrApfDxnIM3a2aaKZ4Murdq0ISGuXEt56u88btbIQOBf/x6mGTIkwxEKj95AphmdfQGcnQGSWrm+o4oLjUDPfds9rRTzlngAzxUItchJ0hnrj0pRjEIKceF+jAuhFLy69kVWYvQOL/atGP/JTjRZmW8fv8gl3Q= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.caveonetworks.com (111.93.218.67) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Fri, 2 Jun 2017 11:21:02 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: bruce.richardson@intel.com, thomas@monjalon.net, cristian.dumitrescu@intel.com, yuanhan.liu@linux.intel.com, maxime.coquelin@redhat.com, Jerin Jacob Date: Fri, 2 Jun 2017 16:50:28 +0530 Message-Id: <20170602112031.9112-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0087.INDPRD01.PROD.OUTLOOK.COM (10.174.56.27) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR0701MB1714: X-MS-Office365-Filtering-Correlation-Id: 57b7b72e-3483-406e-f898-08d4a9a97549 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:R/8NwJzQg9n6zFJoovf30u+h59o2wVbJSfwXcltqPvk2ugA31uoYbWckrCcXduLD3avUXrI34/saOKi+J2L5OadxFoDDh5tAyBuJj5PGAgSye97CFuVfI16J8Vl1IMgqtEWDZzLjH2w8PGHJgtwej0kUX62NyI8v+LvNAlk5nya2S+4cyAxjUl6l27ZzUUgpuXhqNS0pekmKcZx71MxclPg+/jTZ7XpeVIgpxBhnTxN4ZDsa/In6Avb6I7Zm9AkUCOc8MvFSWb6dIp2VOi8KsDcwraGwW9CoAKUm+lZjvoAb6X6V42oY7TBl2YewXvni/ihUrVZ7yb0xorPhILVxvQ==; 25:AoCElK3lOmaYKVaBBWzJe+eIPEpaxD1Ka0EhTPMRJGYzDiM627WySrlnB76Oy2SEdOW1HhBSTj5uVx9V4QeiVkZ+7MyvjVfq8hjdGHZqK+9n9M/iF4Rx/XEyzNGZclQOVvvorUYV74Li6IJOwxWazI3VCKteRIOtgC9Cx4BeGhs8ny0v2j+RkUI4QM9C81/JHJUhdpXRXIYj4etKUhYdyl2rPjvcV5mNLPEs4EgAoVG8kKmV/j+7ugHSFW+ZYXpc9mE3GTfpmdyarI68GrT83tUSSuLEzyYPETwYRaV2ywJmWTDMZLHPxRSs8xKITL2vsDnRZ/gGuGO2zhHE0BkBgKRrEt/kAd59YSv3y+hjrBqvTE2Hbh7NNmhK/6KRL4lBsl8o3STJsCrSjJfdgfEYOUrfBy77nmZHthrnnKoXId0suBvWjXQ+7gGqHUvS3INWmyHBsrZ1JyEyh/WmwCeR9DxAIsEX5ldsKZpAdn85b6E= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:p3V3OmLHqv1zF99qLmfyKrtX1amUEpuqoOLADwmD4QDGCvVYJ1Nh5vUZmBdIHpcmdgvoKgMetFmjbGHrf99WP9QidJZNVmykHAmZHRdx+wKch8FpdQBCmf8aBYZiKDLqvRGeXydW3JMOvZUFaojOF8QJyckwPnggnyyPaSV1ke8g+ihyvmDvZmv3SYjYW8MbnhUposLJ8alTXkke7yWArpneY91bPlgYIkNoeBc77N8=; 20:egN2PPyqBgM7B9ID9GFPSSlN7w36q5tgGcN97Y3mJJcadqqx9FdwD8YJCs44SXcpUxiXNkb/Jp0SSqQVPsPjxOOGdrOLcHy0As1Dfzs1Ti5dH909RbxqUFkaRX3Z9zlqREgYwM7CleDoQ6dZx65PUwxpuEzdXK/0A8w6HWYFoE4ONipvPRFus9bNqq1OKNkN6UGhcbh1y9FV3D99t8K9X8FnKY1txJSg2mGdfMcER1/LGipVqOXZxvnsni0CZiKizmYbuBSeRMJ2YfR4zJzgq1T8oFdpriwTkeT4vn3JO3I238/SMtfkCKCCWIgS7YL2M/N/Njk2hJPIff8ZEr1qWxP+VE7k1r3KQDTQQLy0VhTmLW9NfYMBgD8har6IfuOtneLvZj/C/d3Bg5fOrEJqaOq5sQ+AQab3fBniDOuV0b3uTNTrmgybhSw4b2OL+Uf0WaadDdOZjmuRq8YGx4ugGSlC0mcIfsoXsRKNDomfvQVQoq49whcImXzH/3sovNRHpbCKpsuQCxA9pUfHKHYJh8Vmss9u1U5aaml9H74HPu6Wb4n9xoxsL0pKH/DPrBsj/RRmTbRJjgTgsMPZJxnGM/d/7viYdUujGin1vdFZJpc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(100000703101)(100105400095)(10201501046)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 4:fbG5XjtzPp8NdQlt1rLSfQXFhr1itgjFydLH8foO?= =?us-ascii?Q?+xi/jZhDKUR8EUQrQ1aSElaedheIm7VxwPVUaYsPoLwXeDv7XUuShdUWqzzs?= =?us-ascii?Q?U5cFlSZCu6unMV5Y9LfXg4E/JGuNyXykJkmA7ZQ2qAXtFR1qFfeLMKEAMY8y?= =?us-ascii?Q?zdwg0O+ITQWn2q83RXYo7W55AeTCxQzW5+Fb1TD8FX1/gCId4RAyIc8uezbW?= =?us-ascii?Q?FTzf3nO2Z0ntxUmBVs8d32QBW9FUyqZ2WcNvrYu4+smXT869/JkWFR386tey?= =?us-ascii?Q?YSZCvkq5cwCt+ZvgNr9Od8Hfqu/JShUmXGiZvzHAs3ESeIlmpBGftQSHjSSI?= =?us-ascii?Q?5zPbXFv3MJMfAFQpoMMGrN5geb3DvDWM7GmUqWa6mP/aBLgld0yPufbrI5B6?= =?us-ascii?Q?dp8ThkY713zmFLJizkZwdCYw1plEjyDS0ib+WxOrM4xgcSVw0WbJNb9pqV7E?= =?us-ascii?Q?NYKHf4o/0GZQmFr4XkqdN2+MNa6sIwzsoofCqh4uiTx9GjPDApKuT9KcKfCM?= =?us-ascii?Q?z2JvmQUabhnfDJRHafjaxRKU066NGYs7TLzXcjCHK0/gKdDcuTAjskPLfK3z?= =?us-ascii?Q?cLqh/4/+oCGMC3RF84MPGlsFVlRAlLrLV5Z0cphQSeOO4ic2T3C7Udj67Hty?= =?us-ascii?Q?Xsu356jbscUk9Vu11cQTcor1NCwmNVZk7zpYn+6TZNwtp01lzdUssNxRnocX?= =?us-ascii?Q?Qi4HxxFXOBnz/K3gahkUCOxv3AxCq5W8rNmcHImnJMjkM9ibmh+joIuvV2GO?= =?us-ascii?Q?gXuvBg5ImXHYQKX7sCNzj6Ah46MDzkhQuWNwB+vwKT9HnjQRaGGFEJ7KRqfT?= =?us-ascii?Q?lpYDyoRIT9uaZnoHMggaYGYr5CkMnJqCaaOK1+LkBiVi/GacPrmTZj+e97Al?= =?us-ascii?Q?k2vtbphH20vDtWj82EYMAqjGnrq9ZiAiKDgKN6iw31Q/aeQTzzaX7RmT4lVf?= =?us-ascii?Q?pwHxLYLqivQkEAbhr3klcZCBiiPjoqAkx+WBf/AhyWXUwqOqW6UqW+jO65jm?= =?us-ascii?Q?mb2zH4BDw8OumjFIaOewnTCD2CUtinUnSnV5toU7WRPLQhAntYnlkciFWG7T?= =?us-ascii?Q?4pIXtc7uA0/Jn8AIIxPRsFhT5G6H2hmEztnANDez4Z/dfnhNzPeV9IvTvdKc?= =?us-ascii?Q?9aZVTcny60Q=3D?= X-Forefront-PRVS: 03264AEA72 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39410400002)(39400400002)(39850400002)(3846002)(1076002)(6512007)(6116002)(6486002)(53936002)(53416004)(2351001)(305945005)(50986999)(4326008)(7736002)(2361001)(5660300001)(33646002)(107886003)(38730400002)(189998001)(6506006)(110136004)(5003940100001)(42186005)(81166006)(72206003)(8676002)(47776003)(36756003)(66066001)(6916009)(6666003)(42882006)(478600001)(25786009)(48376002)(50466002)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:jerin.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:KAjQWDFuhWwRxyBFP6RbPdBlFk+m0ruf5pRW+oU?= =?us-ascii?Q?uZ/Vu4vgLnCV9lkUMVZ4tzuBcNiU/UuGK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ZY9y/5pd5t9h6sYV35uFlNWxPff0DxRtWgxyGKCjtls/eXhK5PFbG0/ruqbgViVny9UTx5J67hJIZe1ix5kX4rHfwDWBz1Kw3XreLuebWTBSJ74iD2osQvtT9e/bnYQCcvyugxmUVhO6D8VBXPRo8N5t4ai8heFUJgz05elvWe3eF1CA5ya89rJIy1TbHFbrAxQNQxk2RSjpJ85DTTW0wkMYAM4Px6+x+0OgIO95BL4ulMjsN4tIlXV4c01U; 24:MIPG8C+dhCIY38Qh7YEwIRc+FyHZuQ9qQxBt/WEIT5OCTFPhe/HjVtTUomhYZWUG3JWFnTYUDII7kitDn42SCfQXeLdR94bQTqXfZaEu6EA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:x5GnYI6qP6GdOPqgXf+plvl6l9HeiCdZE3rK84H/2FdBiX+v+9N2/dMs8eusgkvKSDk0hjWCaqQo6U0D2+RdCTs1Kdz1QkTKtqXaIO5dVSNZ9e/Y484cT45Xw8iKjich9uMnTbs2014ZVe1ue0X3FRS8W85aqdPPp8uN2NJlzHtzQWwMY0+vzVVhvLquSs2y5wdFoHYNmL5+pJPoyM0B7LSMnpPNqni9K+/HOWD1W8rpA9Y01hDgw1zAQyyNfuYdU0q5YPa6bUeCKbqI+Lfcdd1kroxfLiZaB0KP99zEogwLEUc+9hUXzrBlpqOCercRcgJoLaNweW4b3OvSrdWh+A== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2017 11:21:02.5774 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH 1/4] examples/l3fwd: add switch fall-through comments X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2017 11:21:07 -0000 This fixes compiler warnings with GCC 7.1.1 Fixes: 268888b5b020 ("examples/l3fwd: modularize") Fixes: 94c54b4158d5 ("examples/l3fwd: rework exact-match") Signed-off-by: Jerin Jacob --- examples/l3fwd/l3fwd_lpm_sse.h | 2 ++ examples/l3fwd/l3fwd_sse.h | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/examples/l3fwd/l3fwd_lpm_sse.h b/examples/l3fwd/l3fwd_lpm_sse.h index aa06b6d34..e92814b10 100644 --- a/examples/l3fwd/l3fwd_lpm_sse.h +++ b/examples/l3fwd/l3fwd_lpm_sse.h @@ -199,9 +199,11 @@ l3fwd_lpm_send_packets(int nb_rx, struct rte_mbuf **pkts_burst, case 3: dst_port[j] = lpm_get_dst_port(qconf, pkts_burst[j], portid); j++; + /* fall-through */ case 2: dst_port[j] = lpm_get_dst_port(qconf, pkts_burst[j], portid); j++; + /* fall-through */ case 1: dst_port[j] = lpm_get_dst_port(qconf, pkts_burst[j], portid); j++; diff --git a/examples/l3fwd/l3fwd_sse.h b/examples/l3fwd/l3fwd_sse.h index 1afa1f006..fa9c4829d 100644 --- a/examples/l3fwd/l3fwd_sse.h +++ b/examples/l3fwd/l3fwd_sse.h @@ -349,12 +349,15 @@ send_packetsx4(struct lcore_conf *qconf, uint8_t port, struct rte_mbuf *m[], case 0: qconf->tx_mbufs[port].m_table[len + j] = m[j]; j++; + /* fall-through */ case 3: qconf->tx_mbufs[port].m_table[len + j] = m[j]; j++; + /* fall-through */ case 2: qconf->tx_mbufs[port].m_table[len + j] = m[j]; j++; + /* fall-through */ case 1: qconf->tx_mbufs[port].m_table[len + j] = m[j]; j++; @@ -376,12 +379,15 @@ send_packetsx4(struct lcore_conf *qconf, uint8_t port, struct rte_mbuf *m[], case 0: qconf->tx_mbufs[port].m_table[j] = m[n + j]; j++; + /* fall-through */ case 3: qconf->tx_mbufs[port].m_table[j] = m[n + j]; j++; + /* fall-through */ case 2: qconf->tx_mbufs[port].m_table[j] = m[n + j]; j++; + /* fall-through */ case 1: qconf->tx_mbufs[port].m_table[j] = m[n + j]; j++; @@ -464,10 +470,12 @@ send_packets_multi(struct lcore_conf *qconf, struct rte_mbuf **pkts_burst, process_packet(pkts_burst[j], dst_port + j); GROUP_PORT_STEP(dlp, dst_port, lp, pnum, j); j++; + /* fall-through */ case 2: process_packet(pkts_burst[j], dst_port + j); GROUP_PORT_STEP(dlp, dst_port, lp, pnum, j); j++; + /* fall-through */ case 1: process_packet(pkts_burst[j], dst_port + j); GROUP_PORT_STEP(dlp, dst_port, lp, pnum, j); -- 2.13.0