]> git.baikalelectronics.ru Git - kernel.git/commit
xdp: remove redundant argument to trace_xdp_redirect
authorJesper Dangaard Brouer <brouer@redhat.com>
Tue, 29 Aug 2017 14:37:40 +0000 (16:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 17:51:28 +0000 (10:51 -0700)
commiteb3b8bd5c6d812dbd7b5df0f4a663935525cec2d
tree2796a7c5b638c813aaed663acb6a0d79b6b9855d
parent6bca42b11aa0f5d1687e5b6024a55b1673af727d
xdp: remove redundant argument to trace_xdp_redirect

Supplying the action argument XDP_REDIRECT to the tracepoint xdp_redirect
is redundant as it is only called in-case this action was specified.

Remove the argument, but keep "act" member of the tracepoint struct and
populate it with XDP_REDIRECT.  This makes it easier to write a common bpf_prog
processing events.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/xdp.h
net/core/filter.c