--- zzzz-none-000/linux-4.4.60/include/net/inet_ecn.h 2017-04-08 07:53:53.000000000 +0000 +++ jet-2400-727/linux-4.4.60/include/net/inet_ecn.h 2021-03-17 14:36:41.000000000 +0000 @@ -126,7 +126,8 @@ from = *(__be32 *)iph; to = from | htonl(INET_ECN_CE << 20); - *(__be32 *)iph = to; + net_hdr_word(iph) |= htonl(INET_ECN_CE << 20); + if (skb->ip_summed == CHECKSUM_COMPLETE) skb->csum = csum_add(csum_sub(skb->csum, from), to); return 1; @@ -134,7 +135,7 @@ static inline void IP6_ECN_clear(struct ipv6hdr *iph) { - *(__be32*)iph &= ~htonl(INET_ECN_MASK << 20); + net_hdr_word(iph) &= ~htonl(INET_ECN_MASK << 20); } static inline void ipv6_copy_dscp(unsigned int dscp, struct ipv6hdr *inner)