Re: [RFC bpf-next 4/7] netdevice: introduce busy-poll setsockopt for AF_XDP

2019-05-02 Thread Magnus Karlsson
On Fri, May 3, 2019 at 2:26 AM Samudrala, Sridhar wrote: > > > > On 5/2/2019 1:39 AM, Magnus Karlsson wrote: > > This patch introduces a new setsockopt that enables busy-poll for XDP > > sockets. It is called XDP_BUSY_POLL_BATCH_SIZE and takes batch size as > > an argument. A value between 1 and N

Re: [RFC bpf-next 4/7] netdevice: introduce busy-poll setsockopt for AF_XDP

2019-05-02 Thread Samudrala, Sridhar
On 5/2/2019 1:39 AM, Magnus Karlsson wrote: This patch introduces a new setsockopt that enables busy-poll for XDP sockets. It is called XDP_BUSY_POLL_BATCH_SIZE and takes batch size as an argument. A value between 1 and NAPI_WEIGHT (64) will turn it on, 0 will turn it off and any other value w

[RFC bpf-next 4/7] netdevice: introduce busy-poll setsockopt for AF_XDP

2019-05-02 Thread Magnus Karlsson
This patch introduces a new setsockopt that enables busy-poll for XDP sockets. It is called XDP_BUSY_POLL_BATCH_SIZE and takes batch size as an argument. A value between 1 and NAPI_WEIGHT (64) will turn it on, 0 will turn it off and any other value will return an error. There is also a correspondin