aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorMagnus Karlsson <[email protected]>2020-01-14 10:49:25 +0100
committerAlexei Starovoitov <[email protected]>2020-01-15 11:41:52 -0800
commitd3a56931f9c8644a52e7a6735954c84ea895e8c3 (patch)
tree91d9e96017c76e1a3cc7c1d1c741e571988f731f /drivers/usb/cdns3/cdns3-debug.h
parent0a29275b6300f39f78a87f2038bbfe5bdbaeca47 (diff)
xsk: Support allocations of large umems
When registering a umem area that is sufficiently large (>1G on an x86), kmalloc cannot be used to allocate one of the internal data structures, as the size requested gets too large. Use kvmalloc instead that falls back on vmalloc if the allocation is too large for kmalloc. Also add accounting for this structure as it is triggered by a user space action (the XDP_UMEM_REG setsockopt) and it is by far the largest structure of kernel allocated memory in xsk. Reported-by: Ryan Goodfellow <[email protected]> Signed-off-by: Magnus Karlsson <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Jonathan Lemon <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions