mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 06:00:52 +07:00
[IPV6]: Fix ECN bug on big-endian
__constant_htons(2<<4) is not a replacement for htonl(2<<20). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
02e60370d4
commit
95026cd242
@ -48,7 +48,7 @@ static inline __u8 INET_ECN_encapsulate(__u8 outer, __u8 inner)
|
||||
|
||||
#define IP6_ECN_flow_xmit(sk, label) do { \
|
||||
if (INET_ECN_is_capable(inet_sk(sk)->tos)) \
|
||||
(label) |= __constant_htons(INET_ECN_ECT_0 << 4); \
|
||||
(label) |= htonl(INET_ECN_ECT_0 << 20); \
|
||||
} while (0)
|
||||
|
||||
static inline int IP_ECN_set_ce(struct iphdr *iph)
|
||||
|
Loading…
Reference in New Issue
Block a user