Re: [External] : divert packet mutex

2022-05-04 Thread Alexandr Nedvedicky
Hello, On Wed, May 04, 2022 at 10:50:15PM +0200, Alexander Bluhm wrote: > Hi, > > I missed that pf divert packet is not MP safe yet. The problem is > that divert_packet() is called from pf with shared net lock and > sbappendaddr() needs exclusive net lock. > > The direct call from pf in IP laye

divert packet mutex

2022-05-04 Thread Alexander Bluhm
Hi, I missed that pf divert packet is not MP safe yet. The problem is that divert_packet() is called from pf with shared net lock and sbappendaddr() needs exclusive net lock. The direct call from pf in IP layer to divert in protocol layer is not nice. I not sure how to address that. As a first