This series add two improvements for the XSKMAP, used by AF_XDP
sockets.

1. Automatic cleanup when an AF_XDP socket goes out of scope. Instead
   of manually cleaning out the "released" state socket from the map,
   this is done automatically.

2. The XSKMAP did not honor the BPF_EXIST/BPF_NOEXIST flag on insert.


Thanks,
Björn


Björn Töpel (2):
  xsk: remove AF_XDP socket from map when the socket is released
  xsk: honor BPF_EXIST and BPF_NOEXIST flags in XSKMAP

 include/net/xdp_sock.h |   3 +
 kernel/bpf/xskmap.c    | 121 +++++++++++++++++++++++++++++++++++------
 net/xdp/xsk.c          |  25 +++++++++
 3 files changed, 133 insertions(+), 16 deletions(-)

-- 
2.20.1

Reply via email to