Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2264941pxb; Fri, 8 Oct 2021 04:30:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNSUWm+7TK/gD/pfZkpQlPDxCSn4WRXjWj3D+/HRmAyrGc+BkMEqgiW36irjYkJ4fkPYaO X-Received: by 2002:a05:6a00:816:b0:44c:6043:943b with SMTP id m22-20020a056a00081600b0044c6043943bmr9840426pfk.4.1633692655766; Fri, 08 Oct 2021 04:30:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633692655; cv=none; d=google.com; s=arc-20160816; b=ZRujMgUWd/WEvI/RcX9a9LJtDTFEN88KZz6bBpqRjT8auJJ79dEm9+3Xy1iQ6maPhX ls9A3plOg3kQ50Khy83u5MsymeBNEc3MTxDiaP03yxxU0kHf5ngVWoTq8v3Ggr9ZEyEV d8nXGK5Jyz9RDFx8k0dANOGL7we3fxcCWsHs6Mlvb//V0RXEkAVymSu2iTkt2aWj08Md mQoZjdWRDVOrctmpiH5dy7gYVXUpRoYgJQk0kFOnrsZe5P2ARbLFQ/33PqEVX86IZ5TT lxcwL7gaQd/L0unV/Nyzkk7IZfXtZeGXWTDZFDaa9ePa3OVRNUJfJjluDrAV2ihqCo6n aGqA== 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=kW3Km1kTrsNcDxzq04vZlOk/FAyF+dX3btmzHjN7HqI=; b=j/735TPxX4KTlhX93oz7KfbJVpDboCciaZ++F+p/zDTsEJ5RpMt6ggao0OlYvCSR54 6f2eH3lCDWziAl1oafJawdnYrLPBeD3+QPD1LH/izURL3zICy9LHvNMxE+u7gXSrw8CN vv5R1Y9745m9DLVtR+FbsNqgR7pdE0cfpJRyaH+P06oQvMAzQPo+rKX+YeoaHW1sQC8o aSfb0tP6oCvi74Yl6t+S3P38uMqur8iYBEn/8H3zALiVol9090xNMJn1FKRtzUKc9IXw GGxLvm6xprw0yiCFB0r0JttmwKVVtyU+L+kg/NCrKsmAMkUcBj4lRbO4kXV20qvK3TdE FPUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=h+e3nUWb; 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 k14si3154161pgg.149.2021.10.08.04.30.41; Fri, 08 Oct 2021 04:30:55 -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=h+e3nUWb; 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 S240628AbhJHLbe (ORCPT + 99 others); Fri, 8 Oct 2021 07:31:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:58428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240615AbhJHLax (ORCPT ); Fri, 8 Oct 2021 07:30:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6DDB561040; Fri, 8 Oct 2021 11:28:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633692538; bh=FqCurY7ZyL163VgWEKjOKzmBXUdZC6z/diIOoNPAe0E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h+e3nUWbZH5mfM5/8iCmO8aqILpvqL86JSUExO/BtGZKkPkqHG+GKRYsufP9VFshB wuYTPjOwCWz6Ui9Utr1ASizFbI69JrtT0LujoSABp0AM5VbWaaoF+Mlkehwts3Y3/Y m/BLJEHho2yLBK6/CD3iw1az4KwliLAZ1IgMrlbk= 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.9 3/8] xen-netback: correct success/error reporting for the SKB-with-fraglist case Date: Fri, 8 Oct 2021 13:27:40 +0200 Message-Id: <20211008112714.063074949@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211008112713.941269121@linuxfoundation.org> References: <20211008112713.941269121@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 f7fd8b5a6a8c..3016869b4afd 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