Re: [PATCH ipsec] xfrm: Ignore socket policies when rebuilding hash tables

2016-07-29 Thread Steffen Klassert
On Fri, Jul 29, 2016 at 04:19:11PM +0800, Herbert Xu wrote: > On Fri, Jul 29, 2016 at 09:57:32AM +0200, Tobias Brunner wrote: > > Whenever thresholds are changed the hash tables are rebuilt. This is > > done by enumerating all policies and hashing and inserting them into > > the right table

Re: [PATCH ipsec] xfrm: Ignore socket policies when rebuilding hash tables

2016-07-29 Thread Herbert Xu
On Fri, Jul 29, 2016 at 09:57:32AM +0200, Tobias Brunner wrote: > Whenever thresholds are changed the hash tables are rebuilt. This is > done by enumerating all policies and hashing and inserting them into > the right table according to the thresholds and direction. > > Because socket policies

[PATCH ipsec] xfrm: Ignore socket policies when rebuilding hash tables

2016-07-29 Thread Tobias Brunner
Whenever thresholds are changed the hash tables are rebuilt. This is done by enumerating all policies and hashing and inserting them into the right table according to the thresholds and direction. Because socket policies are also contained in net->xfrm.policy_all but no hash tables are defined