diff options
author | Tariq Toukan <tariqt@mellanox.com> | 2017-08-31 14:16:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-31 11:56:57 -0700 |
commit | 3edcf18ec2a8665fec060a05535fca6be16a61de (patch) | |
tree | b8d363585b7d886c30b4f21e34bc84ab9e3fb84a /samples/bpf | |
parent | f16ded5948a5e6a399161bd71e866b198952ea5f (diff) | |
download | linux-stable-3edcf18ec2a8665fec060a05535fca6be16a61de.tar.gz linux-stable-3edcf18ec2a8665fec060a05535fca6be16a61de.tar.bz2 linux-stable-3edcf18ec2a8665fec060a05535fca6be16a61de.zip |
samples/bpf: Fix compilation issue in redirect dummy program
Fix compilation error below:
$ make samples/bpf/
LLVM ERROR: 'xdp_redirect_dummy' label emitted multiple times to
assembly file
make[1]: *** [samples/bpf/xdp_redirect_kern.o] Error 1
make: *** [samples/bpf/] Error 2
Fixes: 306da4e685b4 ("samples/bpf: xdp_redirect load XDP dummy prog on TX device")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf')
-rw-r--r-- | samples/bpf/xdp_redirect_kern.c | 2 | ||||
-rw-r--r-- | samples/bpf/xdp_redirect_map_kern.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/samples/bpf/xdp_redirect_kern.c b/samples/bpf/xdp_redirect_kern.c index 1c90288d0203..8abb151e385f 100644 --- a/samples/bpf/xdp_redirect_kern.c +++ b/samples/bpf/xdp_redirect_kern.c @@ -82,7 +82,7 @@ int xdp_redirect_prog(struct xdp_md *ctx) /* Redirect require an XDP bpf_prog loaded on the TX device */ SEC("xdp_redirect_dummy") -int xdp_redirect_dummy(struct xdp_md *ctx) +int xdp_redirect_dummy_prog(struct xdp_md *ctx) { return XDP_PASS; } diff --git a/samples/bpf/xdp_redirect_map_kern.c b/samples/bpf/xdp_redirect_map_kern.c index 79795d41ad0d..740a529ba84f 100644 --- a/samples/bpf/xdp_redirect_map_kern.c +++ b/samples/bpf/xdp_redirect_map_kern.c @@ -84,7 +84,7 @@ int xdp_redirect_map_prog(struct xdp_md *ctx) /* Redirect require an XDP bpf_prog loaded on the TX device */ SEC("xdp_redirect_dummy") -int xdp_redirect_dummy(struct xdp_md *ctx) +int xdp_redirect_dummy_prog(struct xdp_md *ctx) { return XDP_PASS; } |