From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: Dropping NETIF_F_SG since no checksum feature. Date: Wed, 11 Oct 2006 02:20:15 -0700 (PDT) Message-ID: <20061011.022015.63051509.davem@davemloft.net> References: <20061010.191547.83619974.davem@davemloft.net> <20061011090504.GC2938@mellanox.co.il> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: shemminger@osdl.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, openib-general@openib.org, rolandd@cisco.com Return-path: Received: from dsl027-180-168.sfo1.dsl.speakeasy.net ([216.27.180.168]:23435 "EHLO sunset.davemloft.net") by vger.kernel.org with ESMTP id S965216AbWJKJUM (ORCPT ); Wed, 11 Oct 2006 05:20:12 -0400 To: mst@mellanox.co.il In-Reply-To: <20061011090504.GC2938@mellanox.co.il> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: "Michael S. Tsirkin" Date: Wed, 11 Oct 2006 11:05:04 +0200 > So, it seems that if I set NETIF_F_SG but clear NETIF_F_ALL_CSUM, > data will be copied over rather than sent directly. > So why does dev.c have to force set NETIF_F_SG to off then? Because it's more efficient to copy into a linear destination buffer of an SKB than page sub-chunks when doing checksum+copy.