netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* skb diet
@ 2006-04-15 11:17 Hisham Kotry
  2006-04-15 19:22 ` Andi Kleen
  0 siblings, 1 reply; 6+ messages in thread
From: Hisham Kotry @ 2006-04-15 11:17 UTC (permalink / raw)
  To: netdev

Hi,

I just read David S. Miller's skb redundancy page and in it he seems to suggest
taking an approach similar to that of BSD's mbufs to reduce the skb's
size. I was going to do some janitor work on the network stack and I
thought that maybe I could start by adding a tag list to the skb
similar to BSD's mbuf tags and change the code to store its private
variables in tags rather than in skb->cb. That should save 40 bytes
per skb and maybe later the tc and nf related variables could go in
tags too. The transition shouldn't be hard for the most part, many
users of skb->cb use macros like FRAG_CB(skb) so I could redefine
those macros to search the tag-list for the appropriate tag and return
its contents. Is this approach acceptable or is there a consensus on
another approach?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-04-17  5:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-15 11:17 skb diet Hisham Kotry
2006-04-15 19:22 ` Andi Kleen
2006-04-16 11:43   ` bert hubert
2006-04-16 12:56   ` Hisham Kotry
2006-04-16 15:16     ` Andi Kleen
2006-04-17  5:25       ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).