Commit a0d3bea3 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller

[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: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7d69fa62
...@@ -255,7 +255,7 @@ struct sk_buff { ...@@ -255,7 +255,7 @@ struct sk_buff {
nohdr:1; nohdr:1;
/* 3 bits spare */ /* 3 bits spare */
__u8 pkt_type; __u8 pkt_type;
__u16 protocol; __be16 protocol;
void (*destructor)(struct sk_buff *skb); void (*destructor)(struct sk_buff *skb);
#ifdef CONFIG_NETFILTER #ifdef CONFIG_NETFILTER
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment