]> 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)
commit7c217de76cc8bfc8f306561fdc4190e086b9447a
treed2dede2752497f4e5f0780dcb5a69a1e51825553
parent9ab571176b39a9eca6da684ac7445ae519f964f2
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: 76be17b715db ("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