On Wed, Jan 15, 2020 at 11:10 AM Jonathan Lemon <jonathan.lemon@xxxxxxxxx> wrote: > > > > On 14 Jan 2020, at 1:49, Magnus Karlsson wrote: > > > 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. > > > > Signed-off-by: Magnus Karlsson <magnus.karlsson@xxxxxxxxx> > > Reported-by: Ryan Goodfellow <rgoodfel@xxxxxxx> > > Acked-by: Jonathan Lemon <jonathan.lemon@xxxxxxxxx> Applied. Thanks