• Daniel Borkmann's avatar
    ipv6, trace: fix tos reporting on fib6_table_lookup · 69716a2b
    Daniel Borkmann authored
    flowi6_tos of struct flowi6 is unused in IPv6, therefore dumping tos on
    that tracepoint will also give incorrect information wrt traffic class.
    If we want to fix it, we need to extract it via ip6_tclass(flp->flowlabel).
    While for the same test case I get a count of 0 non-zero tos values before
    the change, they now start to show up after the change:
      # ./perf record -e fib6:fib6_table_lookup -a sleep 10
      # ./perf script | grep -v "tos 0" | wc -l
    Since there's no user in the kernel tree anymore of flowi6_tos, remove the
    define to avoid any future confusion on this.
    Fixes: b811580d ("net: IPv6 fib lookup tracepoint")
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
fib6.h 1.76 KB