From: Alexey Dobriyan Date: Thu, 11 Aug 2005 23:05:50 +0000 (-0700) Subject: [NET]: Make skb->protocol __be16 X-Git-Tag: v2.6.13-rc7~98^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a0d3bea3cf6c7c1b53a46432bd490b5dc784ca42;p=linux-2.6-omap-h63xx.git [NET]: Make skb->protocol __be16 There are many instances of skb->protocol = htons(ETH_P_*); skb->protocol = __constant_htons(ETH_P_*); and skb->protocol = *_type_trans(...); Most of *_type_trans() are already endian-annotated, so, let's shift attention on other warnings. Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller --- diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 0061c947048..948527e42a6 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -255,7 +255,7 @@ struct sk_buff { nohdr:1; /* 3 bits spare */ __u8 pkt_type; - __u16 protocol; + __be16 protocol; void (*destructor)(struct sk_buff *skb); #ifdef CONFIG_NETFILTER