net: clean up skb headers code
authorCong Wang <amwang@redhat.com>
Wed, 29 May 2013 07:16:05 +0000 (15:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Jun 2013 00:02:47 +0000 (17:02 -0700)
commit35d0461061f27eeb62de63174959edbbb9e434de
treed314524f383b508e02055c84b25b72c7e38d77e3
parent938177e9f3e0238c1712210f7bb6def38a5c8d7f
net: clean up skb headers code

commit 1a37e412a0225fcba5587 (net: Use 16bits for *_headers
fields of struct skbuff) converts skb->*_header to u16,
some #if NET_SKBUFF_DATA_USES_OFFSET are now useless,
and to be safe, we could just use "X = (typeof(X)) ~0U;"
as suggested by David.

Cc: David S. Miller <davem@davemloft.net>
Cc: Simon Horman <horms@verge.net.au>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/skbuff.c