xsk: support BPF_EXIST and BPF_NOEXIST flags in XSKMAP
authorBjörn Töpel <bjorn.topel@intel.com>
Thu, 15 Aug 2019 09:30:14 +0000 (11:30 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 17 Aug 2019 21:24:45 +0000 (23:24 +0200)
commit36cc34358caf631115e1566485fffed3cf4196b5
treed620399395987e1a16c5972eb97c8b2fd7725623
parent0402acd683c678874df6bdbc23530ca07ea19353
xsk: support BPF_EXIST and BPF_NOEXIST flags in XSKMAP

The XSKMAP did not honor the BPF_EXIST/BPF_NOEXIST flags when updating
an entry. This patch addresses that.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/xskmap.c