Thread (29 messages) 29 messages, 3 authors, 2021-09-06

RE: [PATCH bpf-next 01/20] selftests: xsk: simplify xsk and umem arrays

flat view

From: John Fastabend <john.fastabend@gmail.com>
Date: 2021-09-03 17:54:07
Also in: netdev

Magnus Karlsson wrote:
From: Magnus Karlsson <magnus.karlsson@intel.com>

Simplify the xsk_info and umem_info allocation by allocating them
upfront in an array, instead of allocating an array of pointers to
future creations of these. Allocating them upfront also has the
advantage that configuration information can be stored in these
structures instead of relying on global variables. With the previous
structure, xsk_info and umem_info were created too late to be able to
store most configuration information. This will be used to eliminate
most global variables in later patches in this series.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
---
Acked-by: John Fastabend <john.fastabend@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help