Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 10 Apr 2002 15:32:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 10 Apr 2002 15:32:29 -0400 Received: from ns.suse.de ([213.95.15.193]:51726 "HELO Cantor.suse.de") by vger.kernel.org with SMTP id ; Wed, 10 Apr 2002 15:32:28 -0400 To: Hirokazu Takahashi Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] zerocopy NFS updated In-Reply-To: <20020410.190550.83626375.taka@valinux.co.jp.suse.lists.linux.kernel> From: Andi Kleen Date: 10 Apr 2002 21:32:22 +0200 Message-ID: Lines: 16 X-Mailer: Gnus v5.7/Emacs 20.6 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hirokazu Takahashi writes: > But I wonder about sendpage. I guess HW IP checksum for outgoing > pages might be miscalculated as VFS can update them anytime. > New feature like COW pagecache should be added to VM and they > should be duplicated in this case. For hw checksums it should not be a problem. NICs usually load the packet into their packet fifo and compute the checksum on the fly and then patch it into the header in the fifo before sending it out. A NIC that would do slow PCI bus mastering twice just to compute the checksum would be very dumb and I doubt they exist (if yes I bet it would be faster to do software checksumming on them). When the NIC only accesses the memory once there is no race window. -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/