OSDN Git Service

xdp: xdp_umem: replace kmap on vmap for umem map
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Thu, 15 Aug 2019 12:13:55 +0000 (15:13 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 21 Aug 2019 12:31:17 +0000 (14:31 +0200)
commit624676e788992e4da8de1fad93bfe51563a7f9a0
tree014026527941d0bdfe2a09a5fdd363c8815b84aa
parent71dd77fd4bf7d1675a95dfe04a99669ce15b58f8
xdp: xdp_umem: replace kmap on vmap for umem map

For 64-bit there is no reason to use vmap/vunmap, so use page_address
as it was initially. For 32 bits, in some apps, like in samples
xdpsock_user.c when number of pgs in use is quite big, the kmap
memory can be not enough, despite on this, kmap looks like is
deprecated in such cases as it can block and should be used rather
for dynamic mm.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/xdp/xdp_umem.c