Skip to content

Commit e9df2e8

Browse files
yoshfujidavem330
authored andcommitted
[IPV6]: Use appropriate sock tclass setting for routing lookup.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 7cd636f commit e9df2e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/net/inet_ecn.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static inline __u8 INET_ECN_encapsulate(__u8 outer, __u8 inner)
4747
} while (0)
4848

4949
#define IP6_ECN_flow_xmit(sk, label) do { \
50-
if (INET_ECN_is_capable(inet_sk(sk)->tos)) \
50+
if (INET_ECN_is_capable(inet6_sk(sk)->tclass)) \
5151
(label) |= htonl(INET_ECN_ECT_0 << 20); \
5252
} while (0)
5353

0 commit comments

Comments
 (0)