]> git.baikalelectronics.ru Git - kernel.git/commit
xdp: hold device for umem regardless of zero-copy mode
authorIlya Maximets <i.maximets@samsung.com>
Fri, 28 Jun 2019 08:04:06 +0000 (11:04 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Jul 2019 13:10:55 +0000 (15:10 +0200)
commit200be4804279375bb4d9cdac6ba18fecace4a063
treed2dede2752497f4e5f0780dcb5a69a1e51825553
parent618f2a575b2b3c8143fa81dbcdb0fc6147f70ba9
xdp: hold device for umem regardless of zero-copy mode

Device pointer stored in umem regardless of zero-copy mode,
so we heed to hold the device in all cases.

Fixes: 0a48449cb644 ("xsk: fix bug when trying to use both copy and zero-copy on one queue id")
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/xdp/xdp_umem.c