On Fri, 9 Mar 2018 21:07:36 +0800
Jason Wang <jasow...@redhat.com> wrote:

> >>> 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<bro...@redhat.com>     
> >> 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, without reloading
the NAPI and generate a new NAPI id.

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer

Reply via email to