From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Hutchings Subject: Re: Generating fragmented skb Date: Wed, 6 Nov 2013 19:01:57 +0000 Message-ID: <1383764517.1520.16.camel@bwh-desktop.uk.level5networks.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: To: David Laight Return-path: Received: from webmail.solarflare.com ([12.187.104.25]:50437 "EHLO webmail.solarflare.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172Ab3KFTCC (ORCPT ); Wed, 6 Nov 2013 14:02:02 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 2013-11-06 at 12:31 +0000, David Laight wrote: > What is the easiest way to generate fragmented skb? [...] TCP usually generates fragmented skbs when the output device supports them, separating the payload (may be transmitted multiple times, not modified by the stack) from the headers (regenerated by the stack for each transmission). For small sends this is no longer the case. You can use sendfile() to control fragmentation from userland. Ben. -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.