mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
[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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
7d69fa6266
commit
a0d3bea3cf
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user