[Q.] sk_buff headroom size increases by 16, why?

From: Blusjune Jung (blusjune@yahoo.com)
Date: Fri Jun 16 2000 - 06:13:39 EST


The following is a part of skbuff.h header:

    extern __inline__ struct sk_buff *
    skb_cow(struct sk_buff *skb, unsigned int headroom)
    {
        headroom = (headroom+15)&~15; // <-- point of interest

        if ((unsigned)skb_headroom(skb) < headroom || skb_cloned(skb)) {
        struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom);
        kfree_skb(skb);
        skb = skb2;
        }
        return skb;
    }

I think that the code indicated by left arrow means increment of headroom size by 16.
Is there any reason for headroom increment size by 16?
If so, '16' means the byte-size of headroom?

Thank you for reading this.
 

 ------------------
 blusjune@yahoo.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:31 EST