From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0073.outbound.protection.outlook.com [104.47.32.73]) by dpdk.org (Postfix) with ESMTP id 87D204C96 for ; Mon, 8 Oct 2018 12:42:33 +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:X-MS-Exchange-SenderADCheck; bh=HFRGMo10Pza4/cvEp80LawExN73BbqNKJbh4i0/zN/Y=; b=YI6AlWqtEVN7i1td4L5R53cWYbcpkHIrFnxueDFvAMruzBi9M9wEToxa74dHaWdR9piWm9pefNSu8RYjhtk3cPHRA7VFAZSPphg3PUDKeryqvhLyCw5i1Gp0NwhmJGGivEvavru+DgPGXHqbDZ3mFnxDeyPprX4z3LwdNFDHxdI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.com (115.113.156.2) by DM6PR07MB4908.namprd07.prod.outlook.com (2603:10b6:5:a3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.27; Mon, 8 Oct 2018 10:42:29 +0000 From: Anoob Joseph To: Bruce Richardson , Pablo de Lara Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Mon, 8 Oct 2018 16:11:23 +0530 Message-Id: <1538995285-2040-7-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538995285-2040-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1538995285-2040-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: MA1PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::21) To DM6PR07MB4908.namprd07.prod.outlook.com (2603:10b6:5:a3::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: abb8a534-fc69-45db-0464-08d62d0ac095 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:DM6PR07MB4908; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4908; 3:uxG+zLiQ5gR7twgrcWLf3VKjVM4Ev4ixpfyH0GHfmdY8SEm4kxp41XnG2iL6mrMGuOMoQsPi+3AJKYJ56zXqj/nDV4r6kvM3WVGD/J8ad0efbFbfngTHol873r2gxdrkd0chNqmh/T5pZJoz5yaO5oOXqs3n3X2ejZRTrfs095waUljmXpmQcD+2c9NrBElx5HZ+ewAziH9p5xjkMh0F2YBeav2Iz6FJ9KSMDrb9GlgvygUe1fa512qfuQnBrpeO; 25:BqfXJEaXTeSbDMypeeIFwcpWE0E3xgJu7i8+kV4A7LVee7obGZTNFyvwERk4XA3F3ay3F1SDy++BcKc1xNofziVN+mhv9cm4EcNFLp+cjDor8/sOxhzHVPskYUiachrvTehBgGaNQWmVf3kWYghVJOKr0T9yirF83EZ/cFlfq+I+7YhQFODZJ08KIpAtVDb/tGXHj3Y+nhuv7iQFviFMR42TLeKGzbCKPvDyj/6D1AGey1eZb8SyAgiuFNeGv2j8nLtQS50Oqnsxl0ZZGc7Wp9n7qb6hwuusJGvfV44NZfVYV68rUtlZh//CsJDJ3b/YSci8T55pDT8SHzoqMiBJfA==; 31:p4Mcvfm+F4HBJfQUJzhb9rC/zhTrxuFE0gVPE4m3gbkZygX0NQ9DupDw7fRiYAXSIGJhEGfASEXYsPfcqZcK3ATUjqfQysKzLkPFj+i28MjJ7FsulR6HRMoRhPDa/WkF0n1Gll/BS7i03GAIhEiWdWXFi7tbKh0tmsG5hIhXEBRtxdEWvsbIGU0/ZsvYo8Q3BrfqzRm7A6B66XhOvMgiR5HnVlj/kKDsZMP6dWP5Tn8= X-MS-TrafficTypeDiagnostic: DM6PR07MB4908: X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4908; 20:e45cwMVPS08o9izHnb7tlqKJafH5Zx6OvC10baar2qrfwyVXJhAt9iTVmFWKM+BYO+6k5/8yb0lrBFd0MxB3JDOVqwxaPowbnhvmL2PZyu69JMgdRdN6XR+PN174R8juxjV8D9ebmDmqVON9AgtOuE9dy/cHhNt3rDwqYV19wWwpvkdklELigl186BHv0p1cXW7RQSVHvexuhX8R+VDQ3MNYMugfJImj3S2JNJ/ZBrogFwvletqxQn0BhYS/ZWhBqR7WEn3aULbjDBWg/kA/wkeySFD2owSl+0JBIy+vI7zmb9l35YHqzmnxP6RzA/ImaFndQxMHSF8NvBBXGoiYXiW10mZKi0fGwbSfuwMwbmEpgg8ZR/FF9pzV3vWEBrQDzarIJHPj2pCC4oTnUymTUWMye6sCr3GyPqcEmq0UsjC2b5gv5BuvxtMvMHivw5AGR6oC1EUUyqdpB5CluDCE4O5cRmINaA2QZSI/DyRk/mktFhw4Ovos/qtfzNTQhObFPfCjFUeBUmjVghbY+09LpnBP2Om1jYbyC5RrNKqCeEIYu0GvG/cuYHxSYaVuZ63/5skjDVXPHcd939BBydPITD3ORG01X5ZCFRXsitCPi2g=; 4:GOQInJl0z0/G/BZ6+jTu/kBVIqOTC3ak1AyTE2J+x9DWDad15dIVs3mVmP5ROPHuJowItz4cJmyxq4BpHl70p/d/y8GpCZ7oelsX+a/daFXxW+AIcyKmRcgkd1XwzFKtpXtCnr0qJ7t0WPSB7EldzaLE9vA+vdL3yJKjaOPrmJworJjmolxOb3d4h9mrk8/GUp83AcDosbE5N40629wlnwgEaMizizze2yIsaau5CVXNC9+n2xWAd0c7tch0yoljO8NCCxzxCQhAvIBUojSwdg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3002001)(3231355)(944501410)(52105095)(149066)(150057)(6041310)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:DM6PR07MB4908; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB4908; X-Forefront-PRVS: 081904387B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(136003)(396003)(376002)(39860400002)(346002)(199004)(189003)(47776003)(316002)(14444005)(6506007)(386003)(16586007)(106356001)(105586002)(72206003)(2906002)(55236004)(7736002)(6486002)(68736007)(305945005)(66066001)(6512007)(53936002)(81156014)(48376002)(6666003)(8936002)(50226002)(3846002)(36756003)(50466002)(97736004)(25786009)(6116002)(446003)(486006)(478600001)(476003)(42882007)(11346002)(54906003)(186003)(44832011)(110136005)(5660300001)(4326008)(16526019)(81166006)(51416003)(2616005)(26005)(8676002)(52116002)(76176011)(956004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB4908; H:ajoseph83.caveonetworks.com.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM6PR07MB4908; 23:YrQfM6n0uwFDhvIN+7FeIIXke/lWHpSSrGCKnrQ53?= =?us-ascii?Q?7q1p/kCvg+o8wLUs7zFa/3T4J9zGXaLbEYeYIT5If4giq3yLQm5Iiks4GtU4?= =?us-ascii?Q?FHMi0tJPCKHbj6lX6TfCX0wj3dfmmvNSLPNyDCuUQXghbxALMv8rtaPJ5LNU?= =?us-ascii?Q?7k2O3KEIpzVHjrOmKNQJTpV5jdjr6xYY5PCXBPvMCp/p6Zl256np0zMLFjvI?= =?us-ascii?Q?XjQsROj7yFPHWT1XlSlSx2lkw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DPBbQqWZWke5cPGjmQg==; 5:Tlk/KsUjSP3casHKkmTKW3URa625jcYm//IyjPnmJnZyOYD382UXpjQsjFg8UzHtom+DkDP8dHZybvTOqwICMK83sbV1i9safZQDNIEZovGhOD2kB1Gaf+JOe4Y7R/MdUP4ElTB66SObCfRjwYq40xiAuXgo/IKQrIoTyMItSv4=; 7:4kkr2g8JNDoQ9tRALIEYAlWlojY3PDYaxh1TfoArPEDhX3i8ub0bR2OdCjWL5aKjn8G5HsSiWgh7A/Tm2CzuRUTkHmii0MeU95obANSwIX5RJ4U3Oy4g/Q7nhoMTi0l+XKYNqXn0dlrHkf4APs91XlEVYEWkUE8sCOI8a3Uv5ixVzshjQi+ilvgfnEcuWZ33HN4bIckxZH1lHGyaU40q1YszIvL4Jtg+MJcBQF0xnyt7ixgr01bQrcwOpqmcCIbU SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2018 10:42:29.7230 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: abb8a534-fc69-45db-0464-08d62d0ac095 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4908 Subject: [dpdk-dev] [PATCH 6/8] examples/l2fwd: limit line to 80 char 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: Mon, 08 Oct 2018 10:42:33 -0000 Fixing lines exceeding 80 char limit Signed-off-by: Anoob Joseph --- examples/l2fwd/main.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index deebef5..c70b839 100644 --- a/examples/l2fwd/main.c +++ b/examples/l2fwd/main.c @@ -193,8 +193,8 @@ l2fwd_main_loop(void) uint64_t prev_tsc, diff_tsc, cur_tsc, timer_tsc; unsigned int i, j, portid, nb_rx; struct lcore_queue_conf *qconf; - const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) / US_PER_S * - BURST_TX_DRAIN_US; + const uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) + / US_PER_S * BURST_TX_DRAIN_US; struct rte_eth_dev_tx_buffer *buffer; prev_tsc = 0; @@ -230,10 +230,12 @@ l2fwd_main_loop(void) for (i = 0; i < qconf->n_rx_port; i++) { - portid = l2fwd_dst_ports[qconf->rx_port_list[i]]; + portid = + l2fwd_dst_ports[qconf->rx_port_list[i]]; buffer = tx_buffer[portid]; - sent = rte_eth_tx_buffer_flush(portid, 0, buffer); + sent = rte_eth_tx_buffer_flush(portid, 0, + buffer); if (sent) port_statistics[portid].tx += sent; @@ -249,7 +251,8 @@ l2fwd_main_loop(void) if (unlikely(timer_tsc >= timer_period)) { /* do this only on master core */ - if (lcore_id == rte_get_master_lcore()) { + if (lcore_id == + rte_get_master_lcore()) { print_stats(); /* reset the timer */ timer_tsc = 0; -- 2.7.4