From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 670D81B883 for ; Tue, 15 May 2018 15:49:02 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id j5-v6so1234089wme.5 for ; Tue, 15 May 2018 06:49:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VPw43+hVs7z2OV0iKiSEliT90uCyCu0pQ7f+MSNTVEY=; b=GvGshL9yC/ivxe22IGv2242c7kbGlfLST2VeJODVCrTSaNdTNjclfJYn+qsF4XJnJa CEMbav5GftUg7jgCVEQ+tXegyw+pKD3hS/g+Wj9oPQtxi+jQOI+eYE9xWHLhS1IK6XG2 A5wgnbO+NW+Og+CZqHEPySPD1S08LynSqMoag93FOCq1Yun7CWuAgM+voBGkKNwwm0vm cilKaYpHVGEt5WNcUpblDZU6maJQTzlfn3syAhleIicW6sUwOBUQdwXQq/GwMKlBDqwV tVxNDk4GFo1BJwXVhWODNHootMfr8wnfyfHPQudq4Qh1R0J+81OA3PzIpcyucdAbfiAi aN1w== 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:in-reply-to :references; bh=VPw43+hVs7z2OV0iKiSEliT90uCyCu0pQ7f+MSNTVEY=; b=B9q5wj0BUn76VEdQQYK8mqOBvLWZI8f22lb88v3zbGxwXoK2sRnp42oAOs94F5Oh4y 8gOdMPO8P+COWw9HOLItcUFVXsbUjkltrDGCP7AjF5gqg0PMo+zVqyPjOQowTh5P0958 OZIloW97EZXH4zJERlqFbgfuUyl1xa56dMSZInvVd/OEmlxqfytG+WnuQoBWjzgH/G7E nbV7WFVDAuuE6uWCasOSj/pNc14ucyyPOoHZvGeEPbM6mU2H6nncAmec9SULM72LRL+B bign04NIKr/VGkHra3qtyXW7k+ebbmo0PYfBgutmEl39VyQf0vAX3kSxBlFao78+vGhf hYsg== X-Gm-Message-State: ALKqPwfmu3oLyLx6YIeKPbqBGEnuaQPHoT2SZpBhdvtwWf+LLlffEc+P 0IfjTk0AAdfCaFgvdemKrEU= X-Google-Smtp-Source: AB8JxZp2cEJSg4PPkRcFlqkVXlxBpplVZStXFDU1DbraLleyl29tZLxXUcSJ1nyMNSoqvvjoDf/YYQ== X-Received: by 2002:a1c:700d:: with SMTP id l13-v6mr7354097wmc.81.1526392142009; Tue, 15 May 2018 06:49:02 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id p10-v6sm102145wre.77.2018.05.15.06.49.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:49:01 -0700 (PDT) From: luca.boccassi@gmail.com To: Jay Ding Cc: Scott Branden , Ajit Khaparde , Randy Schacher , dpdk stable Date: Tue, 15 May 2018 14:46:59 +0100 Message-Id: <20180515134731.9337-48-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/bnxt: return error in stats if init is not complete' has been queued to stable release 18.02.2 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, 15 May 2018 13:49:02 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From fb8acb75adc247673ddb21deb6a676cce08ead4c Mon Sep 17 00:00:00 2001 From: Jay Ding Date: Mon, 30 Apr 2018 18:06:12 -0700 Subject: [PATCH] net/bnxt: return error in stats if init is not complete [ upstream commit 327cf9fd1001f9bd4df1159084f091ca384d804d ] return error if init is not complete before accessing stats. Fixes: ed2ced6fe927 ("net/bnxt: check initialization before accessing stats") Signed-off-by: Jay Ding Signed-off-by: Scott Branden Reviewed-by: Ajit Khaparde Reviewed-by: Randy Schacher Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_stats.c b/drivers/net/bnxt/bnxt_stats.c index bd93cc834..00bbef65f 100644 --- a/drivers/net/bnxt/bnxt_stats.c +++ b/drivers/net/bnxt/bnxt_stats.c @@ -238,7 +238,7 @@ int bnxt_stats_get_op(struct rte_eth_dev *eth_dev, memset(bnxt_stats, 0, sizeof(*bnxt_stats)); if (!(bp->flags & BNXT_FLAG_INIT_DONE)) { PMD_DRV_LOG(ERR, "Device Initialization not complete!\n"); - return 0; + return -1; } for (i = 0; i < bp->rx_cp_nr_rings; i++) { -- 2.14.2