Commit Graph

13 Commits

Author SHA1 Message Date
Magnus Karlsson
c425a168a1 AF_XDP-example: move xdpsock example to bpf-examples repo
Move the xdpsock sample application from the Linux repo to the
bpf-examples repo. This example demonstrates a number of capabilities
of AF_XDP sockets.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
2022-09-23 06:06:57 +00:00
Magnus Karlsson
dbf4feb043 AF_XDP-forwarding: move xsk_fwd to bpf-examples
Move the xsk_fwd example application from the Linux repo to
bpf-examples. This sample demonstrates the ability to share a umem
between multiple sockets by implementing a simple packet forwarding
application. It also has a buffer pool manager for allocating and
freeing packet buffers.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
2022-09-21 11:58:41 +00:00
Jesper Dangaard Brouer
de39ecd258 Makefile: Add more SUBDIRS without API issues
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2022-09-02 15:57:09 +02:00
Jesper Dangaard Brouer
04db7bd740 preserve-dscp: Adjust for newer libbpf API
‘bpf_map__next’ is deprecated: libbpf v0.7+:
 use bpf_object__next_map() instead

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2022-09-02 15:49:40 +02:00
Jesper Dangaard Brouer
08161febd1 Makefile: SUBDIR programs depend on lib being finished first
This makes it possible to use make -j for simultaneous make
processes to run.  This does make the pretty output unordered.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2022-09-02 14:57:28 +02:00
Jesper Dangaard Brouer
e70136a68e ktrace-CO-RE: Adjust for newer libbpf API
‘bpf_program__next’ is deprecated: libbpf v0.7+:
       use bpf_object__next_program() instead

See: https://github.com/libbpf/libbpf/issues/296

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2022-09-02 14:45:42 +02:00
Jesper Dangaard Brouer
def0169f41 Makefile: Add more top-level directories
Example programs seems to get out-of-sync (bit rot) more
easily when nobody sees the compile issues.

Thus, add more to the top-level Makefile.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
2022-09-02 14:34:11 +02:00
Jesper Dangaard Brouer
4cbb4f56fe Makefile: clean target should also call clean for lib directory
Signed-off-by: Jesper Dangaard Brouer <netoptimizer@brouer.com>
2021-01-13 18:09:09 +01:00
Jesper Dangaard Brouer
3294cb8573 Makefile: add dependency on configure for config.mk
If configure file changes, then we need to regenerate config.mk.

Signed-off-by: Jesper Dangaard Brouer <netoptimizer@brouer.com>
2021-01-13 18:09:09 +01:00
Jesper Dangaard Brouer
cde146eed6 Makefile: trivial fixes
SPDX-License should be first line in file.

This Makefile is for bpf-examples not xdp-tools.

Signed-off-by: Jesper Dangaard Brouer <netoptimizer@brouer.com>
2021-01-13 18:09:09 +01:00
Toke Høiland-Jørgensen
54259af20a Add bpf-nolsm example for disabling bpf()
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2020-10-12 14:58:41 +02:00
Toke Høiland-Jørgensen
b7544155f7 Add lib/Makefile
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2020-10-06 15:59:44 +02:00
Toke Høiland-Jørgensen
4513664ca3 Initial import with encap-forward example
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2020-10-06 15:53:55 +02:00