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)
commit95caf6f71a9998b5382e3fb9abbca34c02e8f74f
treee9a0f1428cef1acccb41aa37cf040e3003f205fa
parenteaa93bf4c6090809395605d1775a0db9970eda5e
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: 3a56f86f1be6 ("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