ipv6: move IPV6_TCLASS_SHIFT into ipv6.h and define a helper
authorLi RongQing <roy.qing.li@gmail.com>
Wed, 15 Jan 2014 09:03:30 +0000 (17:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2014 23:53:18 +0000 (15:53 -0800)
commitd76ed22b225c02228c643ae336f76e086fdc32f0
treee420a54624555e185458c2d8a443820ef9a276e5
parente96a41ebde3b66dbb59d3ffa0a38dff6e5ca25a9
ipv6: move IPV6_TCLASS_SHIFT into ipv6.h and define a helper

Two places defined IPV6_TCLASS_SHIFT, so we should move it into ipv6.h,
and use this macro as possible. And define ip6_tclass helper to return
tclass

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h
net/ipv6/fib6_rules.c
net/ipv6/ip6_gre.c
net/ipv6/ip6_tunnel.c
net/ipv6/ipv6_sockglue.c