[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d0d1edf746b8f50ca8897478a5e76a006e5d36ed.camel@perches.com>
Date: Mon, 23 Nov 2020 12:25:39 -0800
From: Joe Perches <joe@...ches.com>
To: David Howells <dhowells@...hat.com>, netdev@...r.kernel.org
Cc: linux-afs@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 15/17] rxrpc: Organise connection security to
use a union
On Mon, 2020-11-23 at 20:11 +0000, David Howells wrote:
> Organise the security information in the rxrpc_connection struct to use a
> union to allow for different data for different security classes.
Is there a known future purpose to this?
> diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h
> @@ -448,9 +448,15 @@ struct rxrpc_connection {
> struct list_head proc_link; /* link in procfs list */
> struct list_head link; /* link in master connection list */
> struct sk_buff_head rx_queue; /* received conn-level packets */
> +
> const struct rxrpc_security *security; /* applied security module */
> - struct crypto_sync_skcipher *cipher; /* encryption handle */
> - struct rxrpc_crypt csum_iv; /* packet checksum base */
> + union {
> + struct {
> + struct crypto_sync_skcipher *cipher; /* encryption handle */
> + struct rxrpc_crypt csum_iv; /* packet checksum base */
> + u32 nonce; /* response re-use preventer */
> + } rxkad;
> + };
It seems no other follow-on patch in the series uses this nameless union.
Powered by blists - more mailing lists