Re: [PATCH] af_packet: TPACKET_V3: replace busy-wait loop

2020-07-15 Thread Jakub Kicinski
On Wed, 15 Jul 2020 18:35:00 -0400 Willem de Bruijn wrote: > On Wed, Jul 15, 2020 at 4:21 PM Jakub Kicinski wrote: > > > > On Tue, 7 Jul 2020 17:28:04 +0206 John Ogness wrote: > > > A busy-wait loop is used to implement waiting for bits to be copied > > > from the skb to the kernel buffer befor

Re: [PATCH] af_packet: TPACKET_V3: replace busy-wait loop

2020-07-15 Thread Willem de Bruijn
On Wed, Jul 15, 2020 at 4:21 PM Jakub Kicinski wrote: > > On Tue, 7 Jul 2020 17:28:04 +0206 John Ogness wrote: > > A busy-wait loop is used to implement waiting for bits to be copied > > from the skb to the kernel buffer before retiring a block. This is > > a problem on PREEMPT_RT because the cop

Re: [PATCH] af_packet: TPACKET_V3: replace busy-wait loop

2020-07-15 Thread Jakub Kicinski
On Tue, 7 Jul 2020 17:28:04 +0206 John Ogness wrote: > A busy-wait loop is used to implement waiting for bits to be copied > from the skb to the kernel buffer before retiring a block. This is > a problem on PREEMPT_RT because the copying task could be preempted > by the busy-waiting task and thus

[PATCH] af_packet: TPACKET_V3: replace busy-wait loop

2020-07-07 Thread John Ogness
A busy-wait loop is used to implement waiting for bits to be copied from the skb to the kernel buffer before retiring a block. This is a problem on PREEMPT_RT because the copying task could be preempted by the busy-waiting task and thus live lock in the busy-wait loop. Replace the busy-wait logic