On Thu, Dec 08, 2005 at 01:35:11AM -0800, David S. Miller wrote:
> From: Robert Olsson <[EMAIL PROTECTED]>
> Date: Thu, 8 Dec 2005 10:20:43 +0100
> 
> >  Why not remove copybreak from the drivers and do eventual copybreak after 
> > we
> >  have looked up the packet. This way we can get copybreak for all drivers 
> > and
> >  we can do this only for packets with has destination to localhost and 
> > ignore
> >  the forwarding packets.
> > 
> >  This will lead to an extra alloc in case of copybreak but it could 
> > possible 
> >  to avoid this with some function giving copybreak feedback to driver i.e 
> > via
> >  netif_receive_skb_cpybrk() which tells driver if skb is consumed or not.
> 
> It is not clear if we want to wait the whole netif_receive_skb()
> execution to get this status.  That can take a long time to execute
> :-)
> 
> But it is an interesting idea.

The problem is that there can be a quite long per CPU queue already 
before lookup - and without copybreak a lot of memory might 
be wasted in there.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to