Re: [PATCH bpf] xsk: fix race in SKB mode transmit with shared cq

2020-12-14 Thread Magnus Karlsson
On Fri, Dec 11, 2020 at 8:47 AM Magnus Karlsson wrote: > > On Thu, Dec 10, 2020 at 10:53 PM Alexei Starovoitov > wrote: > > > > On Thu, Dec 10, 2020 at 7:36 AM Magnus Karlsson > > wrote: > > > > > > From: Magnus Karlsson > > > > > > Fix a race when multiple sockets are simultaneously calling se

Re: [PATCH bpf] xsk: fix race in SKB mode transmit with shared cq

2020-12-10 Thread Magnus Karlsson
On Thu, Dec 10, 2020 at 10:53 PM Alexei Starovoitov wrote: > > On Thu, Dec 10, 2020 at 7:36 AM Magnus Karlsson > wrote: > > > > From: Magnus Karlsson > > > > Fix a race when multiple sockets are simultaneously calling sendto() > > when the completion ring is shared in the SKB case. This is the c

Re: [PATCH bpf] xsk: fix race in SKB mode transmit with shared cq

2020-12-10 Thread Alexei Starovoitov
On Thu, Dec 10, 2020 at 7:36 AM Magnus Karlsson wrote: > > From: Magnus Karlsson > > Fix a race when multiple sockets are simultaneously calling sendto() > when the completion ring is shared in the SKB case. This is the case > when you share the same netdev and queue id through the > XDP_SHARED_U

[PATCH bpf] xsk: fix race in SKB mode transmit with shared cq

2020-12-10 Thread Magnus Karlsson
From: Magnus Karlsson Fix a race when multiple sockets are simultaneously calling sendto() when the completion ring is shared in the SKB case. This is the case when you share the same netdev and queue id through the XDP_SHARED_UMEM bind flag. The problem is that multiple processes can be in xsk_g