Re: [MPTCP] [PATCH net-next v2 2/4] mptcp: refactor token container

2020-06-26 Thread Mat Martineau
On Fri, 26 Jun 2020, Paolo Abeni wrote: Replace the radix tree with a hash table allocated at boot time. The radix tree has some shortcoming: a single lock is contented by all the mptcp operation, the lookup currently use such lock, and traversing all the items would require a lock, too. With h

[PATCH net-next v2 2/4] mptcp: refactor token container

2020-06-26 Thread Paolo Abeni
Replace the radix tree with a hash table allocated at boot time. The radix tree has some shortcoming: a single lock is contented by all the mptcp operation, the lookup currently use such lock, and traversing all the items would require a lock, too. With hash table instead we trade a little memory