Skip to content

Commit 92d9ece

Browse files
Al ViroDavid S. Miller
authored andcommitted
[INET]: annotate inet_ecn.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8a9ae21 commit 92d9ece

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/net/inet_ecn.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ static inline int IP6_ECN_set_ce(struct ipv6hdr *iph)
9595
{
9696
if (INET_ECN_is_not_ect(ipv6_get_dsfield(iph)))
9797
return 0;
98-
*(u32*)iph |= htonl(INET_ECN_CE << 20);
98+
*(__be32*)iph |= htonl(INET_ECN_CE << 20);
9999
return 1;
100100
}
101101

102102
static inline void IP6_ECN_clear(struct ipv6hdr *iph)
103103
{
104-
*(u32*)iph &= ~htonl(INET_ECN_MASK << 20);
104+
*(__be32*)iph &= ~htonl(INET_ECN_MASK << 20);
105105
}
106106

107107
static inline void ipv6_copy_dscp(struct ipv6hdr *outer, struct ipv6hdr *inner)

0 commit comments

Comments
 (0)