]> git.baikalelectronics.ru Git - kernel.git/commit
geneve: fix populating tclass in geneve_get_v6_dst
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 18 Mar 2016 17:37:58 +0000 (18:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Mar 2016 17:44:34 +0000 (13:44 -0400)
commit50fabd5be3e036a5e04a45e64d35c7608465493f
treee9a0f1428cef1acccb41aa37cf040e3003f205fa
parent7f83c6f9a9743f95522a125e9262c7cc7905f8b5
geneve: fix populating tclass in geneve_get_v6_dst

The struct flowi6's flowi6_tos is not used in IPv6 route lookup, the
traffic class information is handled in the flowi6's flowlabel member
instead. For example, for policy routing, fib6_rule_match() uses
ip6_tclass() that is applied on the flowlabel for matching on tclass,
which would currently not work as expected.

Fixes: 3c9229807100 ("geneve: handle ipv6 priority like ipv4 tos")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c