Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2266537pxb; Fri, 8 Oct 2021 04:33:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS/fIpQ1J35ZwbMyqjlUsAJT6hhNJDA9a2hAD3w8iuAtk3ZhN8ZnAh5xNoBjo/YfzjCKr3 X-Received: by 2002:a62:cd0f:0:b0:447:b8fe:d6c2 with SMTP id o15-20020a62cd0f000000b00447b8fed6c2mr9521920pfg.70.1633692779902; Fri, 08 Oct 2021 04:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633692779; cv=none; d=google.com; s=arc-20160816; b=dTJjc61xi43mtTLGljsE4HwNFCuwFaTZihEO9ZuDc2/Nq0OpHARmuShblijjiili97 Ewi5FZyLt98c9d9GL7D+vZESCVoJwn9BEy0JB/FYivVcJe6c+7hY4iK606rvhKzqQuxd lrxUq51gjQwHWnwnvj2iJK56Vx3rjnxCf24/xzyKLJEoc+Ou9GYuTPCCKv8B/Os3tV3a NRBU0qLywAZSuUkz8g1FCdTAGDREPSvtcJnH1CuZ77SaZ+W6Hqe7+qBB1tin9PPGdAoH vac1W4wzi06X4EZymKfQ4NFmVATpIKu/AUPgD55xts/rl+9nwVyKwLpGTNdJkqun/F37 lvuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qIIwbbTXGBD4HQhIJ0lVxU/tv5VhOXmBIhL1ALGasFA=; b=H7V99dfqAbRKAgGSGF9dUHvbHwfkINBMavB9c5p6hpjBcBBT6J5Zq84m5n4triAdsE d0eMEF/8DWd4qCIkOXPD9y7OtE638AkmxbLwOS4mz3AFHFOa6D1044LaBHdq1AJU58iS IDXIa4PWhGtdJIfD4BswZFWx+s/KAtuScDtfkD2n5vYj7e1MfESdwx7gGRY+tpDFrnDk WkoOu6l6hVE3WdyfINV/kujTmtvjXmwVNO8omxJ4ebwFjYgFiR1+OKvtJSxFTw8Z6V2X UOcNUZKKuzIpXWxVAep1yZCDFkzcwQVr3zK7k1WiDpY8zuVZcQzqPEh4aAsCnPavUIO/ zqWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bmhhyZn7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si2769147pjc.37.2021.10.08.04.32.46; Fri, 08 Oct 2021 04:32:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bmhhyZn7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240935AbhJHLcd (ORCPT + 99 others); Fri, 8 Oct 2021 07:32:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:59428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240881AbhJHLb3 (ORCPT ); Fri, 8 Oct 2021 07:31:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D0A8061177; Fri, 8 Oct 2021 11:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633692556; bh=T2Tcuj8VAWUyj+yoBtJd13+Cxw5kOSrslGVhstBZGlE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bmhhyZn7F1rQDCKM8n7s2l6RV5KNOsDNckv4zadXaKKjC106U90vRa6D0qhYuJNjy DGy6NRi9kPmgTdlPkIu6itMexzXvn0dfVCE5BCWiUTy+pqM2GiXs8NuTtJeWw0+pYv kmohARobqAb0ecnHFTa7sOe7hcc/7JnEPFecoKv8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jan Beulich , Paul Durrant , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 02/10] xen-netback: correct success/error reporting for the SKB-with-fraglist case Date: Fri, 8 Oct 2021 13:27:43 +0200 Message-Id: <20211008112714.526377516@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211008112714.445637990@linuxfoundation.org> References: <20211008112714.445637990@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jan Beulich [ Upstream commit 3ede7f84c7c21f93c5eac611d60eba3f2c765e0f ] When re-entering the main loop of xenvif_tx_check_gop() a 2nd time, the special considerations for the head of the SKB no longer apply. Don't mistakenly report ERROR to the frontend for the first entry in the list, even if - from all I can tell - this shouldn't matter much as the overall transmit will need to be considered failed anyway. Signed-off-by: Jan Beulich Reviewed-by: Paul Durrant Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/xen-netback/netback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index ad555a9a3eca..e1d6dbb4b770 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -492,7 +492,7 @@ check_frags: * the header's copy failed, and they are * sharing a slot, send an error */ - if (i == 0 && sharedslot) + if (i == 0 && !first_shinfo && sharedslot) xenvif_idx_release(queue, pending_idx, XEN_NETIF_RSP_ERROR); else -- 2.33.0