Re: [iovisor-dev] AF_XDP query

2019-08-02 Thread William Tu
On Fri, Aug 2, 2019 at 3:23 AM Bjorn Topel wrote: > > On Tue, 30 Jul 2019 at 22:25, Kanthi P wrote: > > > > Hi, > > > > Is it possible to have 2 processes each with its own AF_XDP socket and its > > own UMEM? > > > Hi Kanthi, In the case of OVS AF_XDP netdev, we've used multiple PMD threads.

Re: [iovisor-dev] AF_XDP query

2019-08-02 Thread Bjorn Topel
On Tue, 30 Jul 2019 at 22:25, Kanthi P wrote: > > Hi, > > Is it possible to have 2 processes each with its own AF_XDP socket and its > own UMEM? > Hi Kanthi, Yes, it's possible! Björn > Thanks, > Kanthi > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group.

Re: [iovisor-dev] the size of BPF_MAP_TYPE_PERCPU_ARRAY doesn't match the number of CPU

2019-08-02 Thread forrest0579
On Thu, Aug 1, 2019 at 07:16 PM, Yonghong Song wrote: > > I guess you mean value size. here. > When you got the values from kernel, the value size is rounded to 8. See > https://github.com/torvalds/linux/blob/master/kernel/bpf/arraymap.c#L81 > > So if you use 64bit value size, you will get