Thread (38 messages) 38 messages, 3 authors, 2018-03-22

Re: [bpf-next V2 PATCH 10/15] xdp: rhashtable with allocator ID to pointer mapping

From: Jason Wang <jasowang@redhat.com>
Date: 2018-03-16 08:45:37


On 2018年03月10日 00:07, Jesper Dangaard Brouer wrote:
On Fri, 9 Mar 2018 21:07:36 +0800
Jason Wang [off-list ref] wrote:
quoted
quoted
quoted
quoted
Use the IDA infrastructure for getting a cyclic increasing ID number,
that is used for keeping track of each registered allocator per
RX-queue xdp_rxq_info.

Signed-off-by: Jesper Dangaard Brouer<redacted>
A stupid question is, can we manage to unify this ID with NAPI id?
Sorry I don't understand the question?
I mean can we associate page poll pointer to napi_struct, record NAPI id
in xdp_mem_info and do lookup through NAPI id?
No. The driver can unreg/reg a new XDP memory model,
Is there an actual use case for this?
  without reloading
the NAPI and generate a new NAPI id.
We could still do this by e.g a allocator pointer protected by RCU I think?

Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help