From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id 2E2D01B22E for ; Tue, 14 Nov 2017 14:53:05 +0100 (CET) Received: by mail-wr0-f195.google.com with SMTP id u40so17542311wrf.10 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=YdXqrQxjmAOkViPFTYtKxUxPp9Zc9g9uQg2abBAyKhY50c10Mpwb1O7uL1bEVpzPNc 269Asj2R/NbKp8twgxowjs7iqWdJWtwj7+Q65bpD2IplNS2CBvDGI2kq97AATYDpha27 6Ha03DcYDIRpzWcKYRncy22EPKaonWt9XGNU+HqpOHoUjb6LGgcQLFv5Nd6KCP3sLnHJ Fpn4eO2PhwxqEUCdrwSBWOJdVzYTnsaYT37SbmkzFFzuyeqOyd2vRHIO6jPVfOHzaVSj uTirqnwOtlpJwOQP/qF4MITb8IR88vjwf2nKmGz10VtqZWmmOvts+goj4qz9Z00zdYcM n5qA== X-Gm-Message-State: AJaThX5g9p86Rx2Vhclq9hdhn8Q+Y1xEybadsPAhcqJfMLn4Zd3VFArY mB8Z26bemZHq4xQHzeu7WiQW 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-stable] [PATCH] net/mlx5: fix compilation without soft counters X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches 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