tree 2c0f1d9e4c94f6b4052ca7f51442a3f5922124e3
parent 7d69fa6266770eeb6317eddd46b64456e8a515bf
author Alexey Dobriyan <[EMAIL PROTECTED]> Fri, 12 Aug 2005 06:05:50 -0700
committer David S. Miller <[EMAIL PROTECTED]> Fri, 12 Aug 2005 06:05:50 -0700

[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]>

 include/linux/skbuff.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
--- 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
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to