From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anoob Joseph Subject: [PATCH 6/8] examples/l2fwd: limit line to 80 char Date: Mon, 8 Oct 2018 16:11:23 +0530 Message-ID: <1538995285-2040-7-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 Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org To: Bruce Richardson , Pablo de Lara 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) In-Reply-To: <1538995285-2040-1-git-send-email-anoob.joseph@caviumnetworks.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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