From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by dpdk.org (Postfix) with ESMTP id D1B302C8 for ; Tue, 20 Jun 2017 13:37:25 +0200 (CEST) Received: by mail-pf0-f193.google.com with SMTP id d5so22254604pfe.1 for ; Tue, 20 Jun 2017 04:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mV6RY++nvAoM32ibty/d3S0oU0pvyn7ZnCXgk7OksEA=; b=ruPuqXlZbTksmf9GlQTQV60hlLYuuZkFD3jOJDXSe3AOR0npPnF281g5GYH4MeLQaZ /lOawGI23NaeG+pAeZDhUSw6Si9f5LCRo4jrCvDewYiFuyfr8A2HL9jy1Xt9aXMnmscl BQ7yGFOBIBIRxSyggoMP19Mm/h28R5qFEPl0d2FNVbB2thwwULZ+3vWTfNdkdg9ZSJlW 61sko0ZDRWr4phGwPtQUJZkMGtoRLPu0tiKGLffQTWxd5mtz3LDbAfUXYhWNX2/gZXro USTqvofEbjQCLxKcptV/+z3SCd+POJ9L7gSFg1g21o/NzitvdO8VdwpViDURCGL/zzra cWqg== 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=mV6RY++nvAoM32ibty/d3S0oU0pvyn7ZnCXgk7OksEA=; b=LMHt8PgkfMQByst79ZUszr0hi+DGykRJdaUD6MKx75iiQQyS9koH/iptSREUhZO/zE 1mnhevPzYNdhdFdK0b/5d49Pugwk5vc0JtyWNPOiBZb9yU7fHT9Gtgyd3BKdUSHr97/7 c0zC3ag9/8hOZraxYpLwIsQxO9kN2Qxz5t8+cdgyp2OjgSAZR9/jM0LVMRuwl4adD4Ld TyuKpzTgOgXUBR9Hq44Fu9q+48EUMag+2FKPyCYIS+y75k76HBUfqBuHFMdy84i85tSl L9C9jchCPDbNJro79eDO2sIVu4tUy9zFZddQCAnZIvavINMRdbp4gXlx/ZVBvNcwQBQH gMgw== X-Gm-Message-State: AKS2vOyqvlxQgz4ynVSgvbB67qeiFXX9bfowP6WWFY3sULtXu+wlK6ej 0vI0WXr+ptR7CtvB8gTBEw== X-Received: by 10.101.85.141 with SMTP id j13mr31601698pgs.55.1497958645196; Tue, 20 Jun 2017 04:37:25 -0700 (PDT) Received: from yliu-home.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 25sm6104783pfj.59.2017.06.20.04.37.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2017 04:37:24 -0700 (PDT) From: Yuanhan Liu To: Andrew Rybchenko Cc: dpdk stable Date: Tue, 20 Jun 2017 19:35:31 +0800 Message-Id: <1497958550-13600-19-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> References: <1497958550-13600-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/sfc: add Tx queue flush failed flag for sanity' has been queued to stable release 17.05.1 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, 20 Jun 2017 11:37:26 -0000 Hi, FYI, your patch has been queued to stable release 17.05.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/22/17. So please shout if anyone has objections. Thanks. --yliu --- >>From 3b3a03544ef1a955d191aff0a504c0b97eaa9116 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Sat, 27 May 2017 08:55:33 +0100 Subject: [PATCH] net/sfc: add Tx queue flush failed flag for sanity [ upstream commit a47c6d6246cd9cf13ab4b89edb1dab70d464bb8b ] Avoid usage of flushing state when Tx queue flush init failed. Fixes: fed9aeb46c19 ("net/sfc: implement transmit path start / stop") Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/sfc_tx.c | 2 +- drivers/net/sfc/sfc_tx.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/sfc/sfc_tx.c b/drivers/net/sfc/sfc_tx.c index b8581d1..2323014 100644 --- a/drivers/net/sfc/sfc_tx.c +++ b/drivers/net/sfc/sfc_tx.c @@ -503,7 +503,7 @@ sfc_tx_qstop(struct sfc_adapter *sa, unsigned int sw_index) (retry_count < SFC_TX_QFLUSH_ATTEMPTS); ++retry_count) { if (efx_tx_qflush(txq->common) != 0) { - txq->state |= SFC_TXQ_FLUSHING; + txq->state |= SFC_TXQ_FLUSH_FAILED; break; } diff --git a/drivers/net/sfc/sfc_tx.h b/drivers/net/sfc/sfc_tx.h index 6c3ac3b..0c1c708 100644 --- a/drivers/net/sfc/sfc_tx.h +++ b/drivers/net/sfc/sfc_tx.h @@ -64,6 +64,8 @@ enum sfc_txq_state_bit { #define SFC_TXQ_FLUSHING (1 << SFC_TXQ_FLUSHING_BIT) SFC_TXQ_FLUSHED_BIT, #define SFC_TXQ_FLUSHED (1 << SFC_TXQ_FLUSHED_BIT) + SFC_TXQ_FLUSH_FAILED_BIT, +#define SFC_TXQ_FLUSH_FAILED (1 << SFC_TXQ_FLUSH_FAILED_BIT) }; /** -- 2.7.4