• E
    net: skbuff.c cleanup · 6602cebb
    Eric Dumazet 提交于
    (skb->data - skb->head) can be changed by skb_headroom(skb)
    
    Remove some uses of NET_SKBUFF_DATA_USES_OFFSET, using
    (skb_end_pointer(skb) - skb->head) or
    (skb_tail_pointer(skb) - skb->head) : compiler does the right thing,
    and this is more readable for us ;)
    
    (struct skb_shared_info *) casts in pskb_expand_head() to help memcpy()
    to use aligned moves.
    Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    6602cebb
skbuff.c 74.9 KB