[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120426.043623.1317043382565428400.davem@davemloft.net>
Date: Thu, 26 Apr 2012 04:36:23 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: ilpo.jarvinen@...sinki.fi, rick.jones2@...com,
netdev@...r.kernel.org, therbert@...gle.com, ncardwell@...gle.com,
maze@...gle.com, ycheng@...gle.com
Subject: Re: [RFC] allow skb->head to point/alias to first skb frag
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Thu, 26 Apr 2012 10:10:54 +0200
> Idea would have :
>
> 1) struct sk_buff
> 2) skb->head points to frag (aliasing, no memory allocation)
> 3) frag of 2048 (or PAGE_SIZE/2 or PAGE_SIZE)
What would you set skb->data_len and skb->len to?
How would you handle tailroom? We have the rule that you can't append
to the tail of a fragmented SKB (I mean append, the way that IPSEC
wants to write data to the end of an SKB when encrypting, for
example). This is only allowed on fully linear SKBs.
So, for this reason and others, you can't pretend that this new
construction is linear in any way. It would break a bunch of things.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists