xdp: make generic xdp redirect use tracepoint trace_xdp_redirect
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 24 Aug 2017 10:33:08 +0000 (12:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Aug 2017 18:59:36 +0000 (11:59 -0700)
commit2facaad6000f2322eb40ca379aced31c957f0a41
tree5e22bca4b0faec1d75f38dfa3ed6025969839cd4
parentd08adb82fda523cb51a767e2833c5c5bb0906162
xdp: make generic xdp redirect use tracepoint trace_xdp_redirect

If the xdp_do_generic_redirect() call fails, it trigger the
trace_xdp_exception tracepoint.  It seems better to use the same
tracepoint trace_xdp_redirect, as the native xdp_do_redirect{,_map} does.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/filter.h
net/core/dev.c
net/core/filter.c