Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4436831ybh; Tue, 6 Aug 2019 11:38:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4ZGUqRuhsr9FD8v9S7lbohvcginvHlhKCoNf4RtDM1+LVio7sGEe5+pBwf+1LMQDyViyp X-Received: by 2002:a17:90a:9905:: with SMTP id b5mr4723573pjp.70.1565116680407; Tue, 06 Aug 2019 11:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565116680; cv=none; d=google.com; s=arc-20160816; b=p39UrnwyBVK0Y74syljFoHHo+lbXw3tISatsawQR+hJrw9eEQqZk0zzJwpVKZ0pQGh 9GLeBojuA6NKetFjzJKq+xiamNHzD+KZTHe5PNF7p8F7aNzPrzeAZtJxv+x2NHzM5ZrA OgumFYzfK/C7HYz5L4YTvOcIyZVLRpNp8M6WKy7io13peSkA4uRieKqkL2E/6HacJHhU 2HQy66i22li/xs072Emm3RyocfLNt0Jog7ENES35jY9UDhazN2dP7qAWvF6FlgdNLH/h n0yNyp3pdi8WCPURYvNW4lKcGhQBN5nRmqzkeqVsqjAT0m45L59GPzwT3fNHvWnhHSUC yRZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=/fyqG7/xjoBiP7r6UHvyvYHfy0dqLKQJEE2u8gEZOGc=; b=Ft5RPTyaBXkQwrU7GQ66ImCx655wD9Tev7HlzXny+HxWrGDfTLprOne5auReFfcn4f DlPb2qmqazmbCdM/4Ykpbxd871Pdyln+KjC4aaXevWtNs0YwVh3X6ikWm1ALYl07AjhF hFhcKoROfb+3Xp3e6GGfpH+AJe+NjJsohYArleb0/qY7UL0ALxtqqSHSULEMYmIs4jkl Bjufggm2b5ELe11GpZXhA9Ic+T5BaDKQsG4Rjvmv7ZHil80/URf3lQHOy+YlYdOZXJlN 50MEhbpsUu+/5K+5qVmy5o04EVjEcyt/C/E0ziSr3TWOieJqpvKSMqOr3smMb8Zsndnk Kigw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u17si49524779pfc.210.2019.08.06.11.37.44; Tue, 06 Aug 2019 11:38:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733188AbfHFSgl (ORCPT + 99 others); Tue, 6 Aug 2019 14:36:41 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:47820 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728558AbfHFSgl (ORCPT ); Tue, 6 Aug 2019 14:36:41 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id E0BF0152488DC; Tue, 6 Aug 2019 11:36:40 -0700 (PDT) Date: Tue, 06 Aug 2019 11:36:40 -0700 (PDT) Message-Id: <20190806.113640.171591509807004446.davem@davemloft.net> To: firo.yang@suse.com Cc: netdev@vger.kernel.org, jeffrey.t.kirsher@intel.com, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] ixgbe: sync the first fragment unconditionally From: David Miller In-Reply-To: <20190806092919.13211-1-firo.yang@suse.com> References: <20190806092919.13211-1-firo.yang@suse.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 06 Aug 2019 11:36:41 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Firo Yang Date: Tue, 6 Aug 2019 09:29:51 +0000 > In Xen environment, if Xen-swiotlb is enabled, ixgbe driver > could possibly allocate a page, DMA memory buffer, for the first > fragment which is not suitable for Xen-swiotlb to do DMA operations. > Xen-swiotlb will internally allocate another page for doing DMA > operations. It requires syncing between those two pages. Otherwise, > we may get an incomplete skb. To fix this problem, sync the first > fragment no matter the first fargment is makred as "page_released" > or not. > > Signed-off-by: Firo Yang I don't understand, an unmap operation implies a sync operation.