From: Paolo Abeni <pabeni at redhat.com>
To: mptcp at lists.01.org
Subject: [MPTCP] [PATCH net-next 0/4] mptcp: refactor token container
Date: Fri, 26 Jun 2020 12:12:45 +0200 [thread overview]
Message-ID: <cover.1593159603.git.pabeni@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1398 bytes --]
Currently the msk sockets are stored in a single radix tree, protected by a
global spin_lock. This series moves to an hash table, allocated at boot time,
with per bucker spin_lock - alike inet_hashtables, but using a different key:
the token itself.
The above improves scalability, as write operations will have a far later chance
to compete for lock acquisition, allows lockless lookup, and will allow
easier msk traversing - e.g. for diag interface implementation's sake.
This also introduces trivial, related, kunit tests and move the existing in
kernel's one to kunit.
Paolo Abeni (4):
mptcp: add __init annotation on setup functions
mptcp: refactor token container
mptcp: move crypto test to KUNIT
mptcp: introduce token KUNIT self-tests
net/mptcp/Kconfig | 20 ++-
net/mptcp/Makefile | 4 +
net/mptcp/crypto.c | 63 +--------
net/mptcp/crypto_test.c | 72 +++++++++++
net/mptcp/pm.c | 2 +-
net/mptcp/pm_netlink.c | 2 +-
net/mptcp/protocol.c | 49 ++++---
net/mptcp/protocol.h | 24 ++--
net/mptcp/subflow.c | 21 ++-
net/mptcp/token.c | 280 ++++++++++++++++++++++++++++------------
net/mptcp/token_test.c | 139 ++++++++++++++++++++
11 files changed, 486 insertions(+), 190 deletions(-)
create mode 100644 net/mptcp/crypto_test.c
create mode 100644 net/mptcp/token_test.c
--
2.26.2
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Abeni <pabeni@redhat.com>
To: netdev@vger.kernel.org
Cc: mptcp@lists.01.org, "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>
Subject: [PATCH net-next 0/4] mptcp: refactor token container
Date: Fri, 26 Jun 2020 12:12:45 +0200 [thread overview]
Message-ID: <cover.1593159603.git.pabeni@redhat.com> (raw)
Currently the msk sockets are stored in a single radix tree, protected by a
global spin_lock. This series moves to an hash table, allocated at boot time,
with per bucker spin_lock - alike inet_hashtables, but using a different key:
the token itself.
The above improves scalability, as write operations will have a far later chance
to compete for lock acquisition, allows lockless lookup, and will allow
easier msk traversing - e.g. for diag interface implementation's sake.
This also introduces trivial, related, kunit tests and move the existing in
kernel's one to kunit.
Paolo Abeni (4):
mptcp: add __init annotation on setup functions
mptcp: refactor token container
mptcp: move crypto test to KUNIT
mptcp: introduce token KUNIT self-tests
net/mptcp/Kconfig | 20 ++-
net/mptcp/Makefile | 4 +
net/mptcp/crypto.c | 63 +--------
net/mptcp/crypto_test.c | 72 +++++++++++
net/mptcp/pm.c | 2 +-
net/mptcp/pm_netlink.c | 2 +-
net/mptcp/protocol.c | 49 ++++---
net/mptcp/protocol.h | 24 ++--
net/mptcp/subflow.c | 21 ++-
net/mptcp/token.c | 280 ++++++++++++++++++++++++++++------------
net/mptcp/token_test.c | 139 ++++++++++++++++++++
11 files changed, 486 insertions(+), 190 deletions(-)
create mode 100644 net/mptcp/crypto_test.c
create mode 100644 net/mptcp/token_test.c
--
2.26.2
next reply other threads:[~2020-06-26 10:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-26 10:12 Paolo Abeni [this message]
2020-06-26 10:12 ` [PATCH net-next 0/4] mptcp: refactor token container Paolo Abeni
-- strict thread matches above, loose matches on Subject: below --
2020-06-26 10:12 [MPTCP] [PATCH net-next 1/4] mptcp: add __init annotation on setup functions Paolo Abeni
2020-06-26 10:12 ` Paolo Abeni
2020-06-26 10:12 [MPTCP] [PATCH net-next 2/4] mptcp: refactor token container Paolo Abeni
2020-06-26 10:12 ` Paolo Abeni
2020-06-26 10:12 [MPTCP] [PATCH net-next 3/4] mptcp: move crypto test to KUNIT Paolo Abeni
2020-06-26 10:12 ` Paolo Abeni
2020-06-26 10:12 [MPTCP] [PATCH net-next 4/4] mptcp: introduce token KUNIT self-tests Paolo Abeni
2020-06-26 10:12 ` Paolo Abeni
2020-06-26 16:02 [MPTCP] " Jakub Kicinski
2020-06-26 16:02 ` Jakub Kicinski
2020-06-26 16:46 [MPTCP] " Paolo Abeni
2020-06-26 16:46 ` Paolo Abeni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1593159603.git.pabeni@redhat.com \
--to=unknown@example.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.