From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0062.outbound.protection.outlook.com [104.47.38.62]) by dpdk.org (Postfix) with ESMTP id 1B1297D18 for ; Fri, 2 Jun 2017 13:21:14 +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=VUYoKT1H12ruGbPqEiyRol+0a/yBhI8zLU86Tt/a/NY=; b=mz3pDO/GrbPSMDzHOXzM53uczZlDBt53R6e7ikWF1UoPi3+GauY59BODv4mi50uV18cWcpikLje3zN/EV1L0sMy3udrR5v2VKmLNtVKpZ3pCiFWMJvL51Uh1E3dp/fzoSLKycqRYoyUqiGZ7ibZbkbY+pW+S+kq303594TQC2Bs= 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:10 +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:29 +0530 Message-Id: <20170602112031.9112-2-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170602112031.9112-1-jerin.jacob@caviumnetworks.com> References: <20170602112031.9112-1-jerin.jacob@caviumnetworks.com> 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: 43181b66-c49b-48ec-44cf-08d4a9a979da X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:jkLwCaNFgxYXneS0J8KLXuv2dEot1vZ72oncuTSecHsrvnK026wzSfYqR3MpmI//WlcfmbCo7ZqjAb8UJhAXLLNy9NaLrpzAh54PoT0RV/lVAtBynzUIKhuUcVkJwHSwylQ9brKRxxn5jVm4K3OroMF9EGunhSnLTrmgUBohrt1xNFGWRDyoRzOftX+8t6WZDTB0OCF08mE/WUPOfmsZRqWLslfwdiAvV5JDvyqpVoMNYmYUFrK6npFEeN80sRqvaQVde94vXpWjYLxxGO4nWo/vzIUomWDsLpVTJU9/TD2RWJeq52JteDjUGjMOsOGunSX3qgSmecPgAz00LCB6rA==; 25:LwO4Ldy/eXZr7W7XgAnvo6FSa3rv3gOOp0RZlaWpHP9tNMgxqGecHfOyufwSXObHrqvX3m/VDrbGfNyJ5eacJB6RWxabMR+ovxmDkOfFmjd6aem48xI0PWoK8z0Szti78473FOlZkNSfn7W9JJMLLiNG5HMUrpYPoMe6hidGg/1OiN8Qrn4/guOze4KLqUVJx3BGr2e0hplqL5IlnRpmYAoCLKg9A/plOu2BkkNLYKuAU70L0ok0iJVdMuLgW2o3kj0vFSCLTnIQE9xT2AamgCCI/vzpE4iplhSrt03D8CiILBvQ9ynPrpXrDldLIUZeg6/uP24NWR44DvdVICQqYyY1GokNMMZj+epPhFvsUXU9pOrNBo6aG4kJn2GXMlk/c9fXfCxh3eWQQMlmuQgeqDjR+4MLombo6SHmX6ECqrYGM8rnWtmg5VrZMzH64IuuYdRYETjtXmEkrzQ4EZXdU5m5azntE5J/Ec/M2qNryoI= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:Zt2FSARsOwiWGv0VfFyzDUHXXSGiNCtY9ylIXJt2PhfDe8R2Yop+GxxiYGFgEd9RoadGkdo6OeVJWcewyMNArZBeJMYiZvMpf87G6mr+MaNKPsPnbODO1QIxW49CkkSchslbjVZsBw8PvHSXGXqjrO6om1+l2ejYWqvSRk3Ov6ioQtU4GVdyxumt/K0Cgydp2ShkcarZxTr6aZTcrD65KFW/1BmZufzzcOqAQYnrAjI=; 20:fkKRQd3ph181dq10G5ivGEbZCmX71ixDaVuUe5awA91UNKDhvxa12kdcUwAU4/mSejreHTDXXIxE26jkOcsVehVahCJMhdS+TjBEht4yAid0l2I1q5t+lTsOltM+MTUl8NsvGh8Cti6E7HQjzG4nIrB9C+m95axAq2e0NZb1oP9NcvLp2SlT8KSQ9GvrsoHGQmit7omslwFx18sYTKhDkwWbcf/Jirp3tOK2sEejuXwdoh5gCvChMc/asaTV3zP8TwMWf57MSWKMnzGeTv5VLlXzUEfWgDNPlLm4lbue7MXuFfMBp44EnBGVL9t/erLXcE3Yp9SKqemVEvRBs6MJUajWYNqTQxFtTo+9NO0UnCNwY3CA1yMLno6RPaIC7ZS4zltyYH6DBc+Yaznxo/bjdTxlLq3zyMiSE7VBnqI/RPSZJ9Ier66oNyH3ZRN/eyXltLdQmAOV153rnYM9YbzJEoYx0xb6AMdq+HuAh1I81pvQo8u/cefsX844Gp8R+kKJx8vE+H5adagTDAnoFDcuBi9EgRUiCmAYroHMmQ4e7939DtuaMUi9bXrOiqyN0weoxNrFqA13yyCc5afuzvasVXrc14Z7Z2MZuGaAoahlSv8= 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:DENoOcqmeJLKnGzC5LKFU176bnKvDDUJ0rAyDEKW?= =?us-ascii?Q?nx10jNPzfMoTlJ8n+NQGnj/B7xDfRPBEX69npdOewFIqocsyKwTqQxBcUsi9?= =?us-ascii?Q?pE4mwo6P4jfykpdmq55hC+NHJQEBvDU59oK1/DNKm1HtqHTcFK9+JWKufosG?= =?us-ascii?Q?omKHsaoWy/UI21oJPSRzMn0X4h7gL6b8N/3fwZJOiKbZHKF6d/KOv1T9+Wj+?= =?us-ascii?Q?G3XO2kDVkMLMF2oJPDBvOfe2pwmDK5Uvfa/Ul4NTaYDJX5CQA8nEcDDRSiyd?= =?us-ascii?Q?QJ0D/upxRV94wIxG6daIkK2TrFlH+8KFVgmXrjjHOx992ROkwQ3UN0FTGJy0?= =?us-ascii?Q?bx3GlA5ZJcMiW+DvZ6uDEWZrroYAsnNrtKDlXHsidAVOUKR4V40EMt6UyOP7?= =?us-ascii?Q?1qzdkWJyrunLQpdGEAY3qKsDybSL9M5hoZzRfrOHlaJB+FqZFPJI/BJefUf9?= =?us-ascii?Q?hbb64ymQqH3NPv8jpfB/MXgO5VPvIcbSsLXzAQvTOCAmR61kwJPLeSlYY5S1?= =?us-ascii?Q?gHcdeJLAFG/E3pPf9W9V0MkdtqrZ8Ul3Q+p3S10qS+BWAYXjRdPLcKa/MCqu?= =?us-ascii?Q?CdIYBOYDZl7ZzCXLnnnKcKTsQc7wAkk8vSz8euOETNju3f798ffhVLntXYO6?= =?us-ascii?Q?/avUllUC+z9O8C6JeeuRws6nN1j2Ig4hMx9RYqrMVzb9MGUV0N+kuvGGvfzo?= =?us-ascii?Q?BbGRXk2NrHwuOeicdwgjhX/URg8vyB4GWrtvGIcv7PHc9k5EZlO8RA8Smw8r?= =?us-ascii?Q?HWdktOapf4Qmokoy6ZHVI8LXj0b34CutVFABxfUc/BQYTFJS3/w5FUG62YJm?= =?us-ascii?Q?AUHtI239btNFqM17mowVFcsYyHR4Z4yvSuJjditzhXto8Mx9p0vCUqPyB7EQ?= =?us-ascii?Q?c3NRI+7hEsGbGxksYgXhofwLrmdMsX/gx6F1axlCS22lIse7xtjG9qW6wHHZ?= =?us-ascii?Q?VHy9E5RJlAaunzkUEUh49yE87Tq5yEbVH0NKBIQOP4rHW1p/zdFk95+k0HNI?= =?us-ascii?Q?tr9YWcEy/ScJx3gZ9NPGYa5iUnTqaBom52gX160dzlrHOTjlsIy9UBR2Pe6F?= =?us-ascii?Q?HysMCsRlSaESLqfTPh6WeWiDGp39akJLYm0bnKxw+7X28V7hTgYXX1vClppp?= =?us-ascii?Q?7T/8sRy3f4s=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)(76176999)(5003940100001)(42186005)(81166006)(72206003)(8676002)(47776003)(2950100002)(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:fISAVa5hMJ5Rfue8r8hjsZaAGgn1lSmMt/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qBMOHLg3keogSUTdF3fFcvqGaH30yTQjJ2J9I?= =?us-ascii?Q?vQigSi7OkLQ4KjVN8eqbhvYdZ5HddRNMPunTrPw3i24yNrA5ei/+PtQtVwth?= =?us-ascii?Q?Pq25+7e7DlTmCO4zhKjplvkZ4W8Y8D+q+YbGujLaGrHnS0rmkKquulKf3sTi?= =?us-ascii?Q?iA1pU+RTPliDD830d359l/byCcGOedNDf7EKOjkJ+jKtnNGGfjacuBnDjLVH?= =?us-ascii?Q?IQUE/K38uKks=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 6:LA0e3+jOGm4/pjTRTvcUvMSMI73wOJts2twe1r0d7OIZcLrLG9msQpXTVy8GVYspA82ABVSNjhsFQy8iQk7z8f81PpN33YgfavF51OsxoELDPlpw4F+ROm9xeBz+h+0Paug6ngj8AsTdF3JM7WDK5l0b2BeY2b2hX36YX/skjDgCKdfn6Zh6fR5wvpkI8UIOTarUS844lZv8+GDB0io+wGCneFRYYcxfiHykV76h8iRCQHhb9VjDs2+BwFMwgbQrWwe2krMMF/9yGGjGtyATKgwXgwHO/UKQajn+3PW2k4G9BDXiXaiWFuxG6KA8jD5xTV00vzMYPwWoBX5vxOC5eKEDRdzo3jcrqhtzA7J2v1g+HxnXIFmn4UtH53QGGygnKOytHt33dlTjaw+8rPNlxt/zLKNTbgkocoM8i1xqo2avi91LA2tZUPno4paPEjmz52WqSy6bGWmTAPKfs2fw1Yywd2BTOjlUst2i3l1CezFJBi02TkWewJFOD8lbZ+g3NRg0p3nbwVTYUR/KhCNDnw== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 5:oUm4Z0zcAlG9Xi5PYo6sxxklTyKt+ffnkJONpiOqsZ+OzK+1vv5avhSq08KcLtw4esN7rhHYRC+cSpauacyZ1pZNAIFUfhfSH0ZZoXivi0TQt6rLie9jSjuAkP/FmV4zPn5kR5BJFBnwrDeh2tLUUzALX/SkmfH1zUYaP/MLBXlZppKZ/aP6ogRfKaZkXs7mu4KuWTW0On0FRO7rsUNjbCVIpsbZQLcftEaGzYd5oZDU2c1hLrD8SU8gc4cEEtg/wUF9nq7M4rDbFPz0QpN1px90cDXqb5qjYnLGtoLAo25TdtPvWtUcy3Rk24bz/fgh3Q2sUOQL1ZKZhI9GCAm0GrckLgOcnWYqCn66WqrdbiI/JNQoYzrLcZqCVdc/jzQVksM6uawD+0mlHOa1Yh10fxyqvlpNGNyGwL5ziPRXQpr0kLmnYmpZbI4OZj74T185WTtHZIE6aUdqm22UHcRUB8dAdUuUYEeqlAB+hCboIaBLmhSDATxLqRVSQc/r3zpE; 24:LgWlP4O80UWzPz7X3sI4phSrRN9YVTU1sHIwrMshsF8fumr3fy50wX0AgkZ55VShhHm1Qy20rLroJkmDnizjiXZG6WcGAJMyMUfXSRsXMH0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:L7aKYz+9G1VvAVyBhHgC3JTs/KY3HZQnbYlw5jcZ8hyS+1hjJ9ncu2NFCg3yY854JzREr+sKv+DW9JPiOUtKpS/TOiZtoNHtxlITkCx9/2LfBv69ChLpANWq5jDbhmZ9xqyG/NanE+fcgTVw7rAmtfnew0+BHy6wS/hkJAMWlUHNpHJnjp+jYjCvvkp35r2T+tLfUnIH1Sj6VjStf+25X/5TQahYDao2pjr2ZSVuUQbAdca0i9ciafWNOn2LcoxA/nUNJtCzy63Bq4MxTNfTJwns0sHe++AdE7dibGx1U47DFLw3BnBK7DnMuJLZrM1Jng8zNhi4+Se8Egf3HRg1CQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2017 11:21:10.3746 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH 2/4] examples/performance-thread: add 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:14 -0000 This fixes compiler warnings with GCC 7.1.1 Fixes: d48415e1fee3 ("examples/performance-thread: add l3fwd-thread app") Signed-off-by: Jerin Jacob --- examples/performance-thread/l3fwd-thread/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples/performance-thread/l3fwd-thread/main.c index 2d98473eb..ac85a369f 100644 --- a/examples/performance-thread/l3fwd-thread/main.c +++ b/examples/performance-thread/l3fwd-thread/main.c @@ -761,12 +761,15 @@ send_packetsx4(uint8_t port, 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++; @@ -788,12 +791,15 @@ send_packetsx4(uint8_t port, 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++; @@ -1860,10 +1866,12 @@ process_burst(struct rte_mbuf *pkts_burst[MAX_PKT_BURST], int nb_rx, process_packet(pkts_burst[j], dst_port + j, portid); GROUP_PORT_STEP(dlp, dst_port, lp, pnum, j); j++; + /* fall-through */ case 2: process_packet(pkts_burst[j], dst_port + j, portid); GROUP_PORT_STEP(dlp, dst_port, lp, pnum, j); j++; + /* fall-through */ case 1: process_packet(pkts_burst[j], dst_port + j, portid); GROUP_PORT_STEP(dlp, dst_port, lp, pnum, j); -- 2.13.0