Re: [PATCH v6 2/5] net/handshake: Define handshake_req_keyupdate
From: Hannes Reinecke
Date: Tue Dec 02 2025 - 10:34:47 EST
On 12/2/25 02:34, alistair23@xxxxxxxxx wrote:
From: Alistair Francis <alistair.francis@xxxxxxx>
Add a new handshake_req_keyupdate() function which is similar to the
existing handshake_req_submit().
The new handshake_req_keyupdate() does not add the request to the hash
table (unlike handshake_req_submit()) but instead uses the existing
request from the initial handshake.
During the initial handshake handshake_req_submit() will add the request
to the hash table. The request will not be removed from the hash table
unless the socket is closed (reference count hits zero).
After the initial handshake handshake_req_keyupdate() can be used to re-use
the existing request in the hash table to trigger a KeyUpdate with
userspace.
Signed-off-by: Alistair Francis <alistair.francis@xxxxxxx>
---
v6:
- New patch
net/handshake/handshake.h | 2 +
net/handshake/request.c | 95 +++++++++++++++++++++++++++++++++++++++
2 files changed, 97 insertions(+)
Reviewed-by: Hannes Reinecke <hare@xxxxxxx>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich