mbox series

[v3,bpf-next,0/2] Better handling of xskmap entries

Message ID 20190531185705.2629959-1-jonathan.lemon@gmail.com
Headers show
Series Better handling of xskmap entries | expand

Message

Jonathan Lemon May 31, 2019, 6:57 p.m. UTC
Respin of v2 to fix stupid error.

Testing with samples/bpf/xdpsock:
[root@kerneltest004.06.atn2 ~]# ./xdpsock  -i eth0 -q 0

 sock0@eth0:0 rxdrop	
                pps         pkts        1.00       
rx              17          17         
tx              0           0          


Jonathan Lemon (2):
  bpf: Allow bpf_map_lookup_elem() on an xskmap
  libbpf: remove qidconf and better support external bpf programs.

 include/net/xdp_sock.h                        |  6 +-
 kernel/bpf/verifier.c                         |  6 +-
 kernel/bpf/xskmap.c                           |  4 +-
 tools/lib/bpf/xsk.c                           | 79 ++++---------------
 .../bpf/verifier/prevent_map_lookup.c         | 15 ----
 5 files changed, 27 insertions(+), 83 deletions(-)