Subject: Re: [PATCH] clear skb cb on IP input

From: Stephen Hemminger <[email-masked]>
Date: Sat, 15 Jul 2006 08:50:58 -0700

Herbert Xu wrote:
> David Miller <[email-masked]> wrote:
>   
>> Thank goodness this thing is only 3-words in size, this is going to
>> run on every single IPv4 packet received by the system. :-/
>>     
>
> At least this lets us get rid of a few other memsets :)
>
> [IPV4]: Get rid of redundant IPCB->opts initialisation
>
> Now that we always zero the IPCB->opts in ip_rcv, it is no longer
> necessary to do so before calling netif_rx for tunneled packets.
>
> Signed-off-by: Herbert Xu <[email-masked]>
>
> Cheers
>   

Since skb->cb is aligned, we could optimize the initialization
slightly by just using:
    *(unsigned long *)skb->cb = 0;