Skip to content
Snippets Groups Projects
Commit 92d9ece7 authored by Al Viro's avatar Al Viro Committed by David S. Miller
Browse files

[INET]: annotate inet_ecn.h

parent 8a9ae211
No related merge requests found
...@@ -95,13 +95,13 @@ static inline int IP6_ECN_set_ce(struct ipv6hdr *iph) ...@@ -95,13 +95,13 @@ static inline int IP6_ECN_set_ce(struct ipv6hdr *iph)
{ {
if (INET_ECN_is_not_ect(ipv6_get_dsfield(iph))) if (INET_ECN_is_not_ect(ipv6_get_dsfield(iph)))
return 0; return 0;
*(u32*)iph |= htonl(INET_ECN_CE << 20); *(__be32*)iph |= htonl(INET_ECN_CE << 20);
return 1; return 1;
} }
static inline void IP6_ECN_clear(struct ipv6hdr *iph) static inline void IP6_ECN_clear(struct ipv6hdr *iph)
{ {
*(u32*)iph &= ~htonl(INET_ECN_MASK << 20); *(__be32*)iph &= ~htonl(INET_ECN_MASK << 20);
} }
static inline void ipv6_copy_dscp(struct ipv6hdr *outer, struct ipv6hdr *inner) static inline void ipv6_copy_dscp(struct ipv6hdr *outer, struct ipv6hdr *inner)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment