]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
xsk: simplified umem setup
authorBjörn Töpel <bjorn.topel@intel.com>
Tue, 22 May 2018 07:35:02 +0000 (09:35 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 22 May 2018 08:25:06 +0000 (10:25 +0200)
commita49049ea257656f27ffe424224f4a362b8b1234a
tree155eee39357db7499a3f8ccc17a039b78c45eb0e
parent37b076933a8e38e72ffd3c40d3eeb5949f38baf3
xsk: simplified umem setup

As suggested by Daniel Borkmann, the umem setup code was a too
defensive and complex. Here, we reduce the number of checks. Also, the
memory pinning is now folded into the umem creation, and we do correct
locking.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/xdp/xdp_umem.c
net/xdp/xdp_umem.h
net/xdp/xsk.c