Re: ipsec ipo tdb mutex

2021-12-14 Thread Vitaliy Makkoveev
ok mvs@ > On 11 Dec 2021, at 22:03, Alexander Bluhm wrote: > > On Sat, Dec 11, 2021 at 12:53:35AM +0100, Alexander Bluhm wrote: >> To cache lookups, the policy ipo is linked to its SA tdb. There >> is a list of SAs that belong to a policy. To make it MP safe we >> need a mutex around these

Re: ipsec ipo tdb mutex

2021-12-13 Thread Hrvoje Popovski
On 12.12.2021. 16:37, Hrvoje Popovski wrote: > On 11.12.2021. 20:03, Alexander Bluhm wrote: >> On Sat, Dec 11, 2021 at 12:53:35AM +0100, Alexander Bluhm wrote: >>> To cache lookups, the policy ipo is linked to its SA tdb. There >>> is a list of SAs that belong to a policy. To make it MP safe we

Re: ipsec ipo tdb mutex

2021-12-12 Thread Hrvoje Popovski
On 11.12.2021. 20:03, Alexander Bluhm wrote: > On Sat, Dec 11, 2021 at 12:53:35AM +0100, Alexander Bluhm wrote: >> To cache lookups, the policy ipo is linked to its SA tdb. There >> is a list of SAs that belong to a policy. To make it MP safe we >> need a mutex around these pointers. >> >>

Re: ipsec ipo tdb mutex

2021-12-11 Thread Alexander Bluhm
On Sat, Dec 11, 2021 at 12:53:35AM +0100, Alexander Bluhm wrote: > To cache lookups, the policy ipo is linked to its SA tdb. There > is a list of SAs that belong to a policy. To make it MP safe we > need a mutex around these pointers. > > Hrvoje: Can you test this alone and together with the ip

ipsec ipo tdb mutex

2021-12-10 Thread Alexander Bluhm
Hi, To cache lookups, the policy ipo is linked to its SA tdb. There is a list of SAs that belong to a policy. To make it MP safe we need a mutex around these pointers. Hrvoje: Can you test this alone and together with the ip forwarding diff. I protects the data structure where the latter