From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 5C1B71B23A for ; Tue, 14 Nov 2017 14:53:05 +0100 (CET) Received: by mail-wr0-f194.google.com with SMTP id l8so17532132wre.12 for ; Tue, 14 Nov 2017 05:53:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=K0uTn2++xa9jFj3RwpLepZWKRSuBhIfVgIwcfbRUuzE=; b=TlCr6eX7i9kXoHCV1pXbBIsv5qjOj9/TVEcNBoz9zJNtG9QmKZ2I7Z3C/Ul+e/62qy M5koZPKw3BV8kXIq2vSbdHMblFiu28NebnbCX8xcCKROkaPgM+WyOFoMLBsHp26BIOhb 2iE/RAyhiXJUmtoDtrkhYZjsTO5qU88SaEUK4nNbqLwihwODU67VJWkqyJq0gJqXTl6P WmV5psNXnP5nAWs+DdtlXqVGS67KBVqrgsn1KcaZ+po66ZwtmwCTNqs8HOJ82132J27m kkso7feMv3VB1yvWsAkhPO77zLpLt0g5kTPLfS1GLy65tjzgctqlI6+RN1me88a/VFUD 20+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=K0uTn2++xa9jFj3RwpLepZWKRSuBhIfVgIwcfbRUuzE=; b=ihAgBHED3O4jrao7lqVM070nO/7dexj7u77PxfVZAtFcegMz1EAHUqaAGWQLBU/Z8X Q6Dt+tg+anFWF9jrg9/wknEItqpmzlUqnHkBTRzajpWpk65GGoCHQ8Fyow/L6Pb7Y3Gn Ohm/KJYdrxB7dCy8vVShfZVXiATxfdLsScAA+tDN6KZ0ZVDvQC0DQ3i01G+BpeXRBM1b sRtTwvI4/bD6kD3BGR6xUWvDpGYtZCEFqvmV0MMWd4SGYcxZfvrNURR55G4MNQgRCWio rQ4by25CeeMF4vFgrVvd6Croq4B3N+53okib93hWf2pRMRbNQyLozA8LihJMWAfkPyrJ gZ4g== X-Gm-Message-State: AJaThX6uPGco7X3vuCbv/iYvkZcdRz/4nYMPTcrByZZd8QUAN7bMOzlY nXbiZftnJIakGveDQJJo5Vt021k9jA== X-Google-Smtp-Source: AGs4zMbV/mwdboNsUSRlNDhfdeNar3/FSFPyM6Rf+jPXLEvI5y5xD/8RCdQqCyX/soqQd8QDEJjqkw== X-Received: by 10.223.173.129 with SMTP id w1mr10593620wrc.19.1510667584871; Tue, 14 Nov 2017 05:53:04 -0800 (PST) Received: from laranjeiro-vm.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 10sm16362149wml.27.2017.11.14.05.53.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Nov 2017 05:53:04 -0800 (PST) From: Nelio Laranjeiro To: dev@dpdk.org Cc: Thierry Herbelot , Yongseok Koh , Adrien Mazarguil , shahafs@mellanox.com, stable@dpdk.org Date: Tue, 14 Nov 2017 14:52:44 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH] net/mlx5: fix compilation without soft counters 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: Tue, 14 Nov 2017 13:53:05 -0000 From: Thierry Herbelot total_length is only visible when SOFT_COUNTERS are enabled Fixes: 3f13f8c23a7c ("net/mlx5: support hardware TSO") Cc: shahafs@mellanox.com Cc: stable@dpdk.org Signed-off-by: Thierry Herbelot Acked-by: Nelio Laranjeiro --- drivers/net/mlx5/mlx5_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 9658b3783..2d30c507f 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -524,7 +524,9 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) 0, }; ds = 1; +#ifdef MLX5_PMD_SOFT_COUNTERS total_length = 0; +#endif k++; goto next_wqe; } -- 2.11.0