* [PATCH net-next 1/1] net: macsec: Expose MACSEC_SALT_LEN definition to user space
@ 2022-08-17 10:58 Emeel Hakim
2022-08-17 13:01 ` Sabrina Dubroca
0 siblings, 1 reply; 2+ messages in thread
From: Emeel Hakim @ 2022-08-17 10:58 UTC (permalink / raw)
To: edumazet, mayflowerera
Cc: kuba, pabeni, netdev, linux-kernel, Emeel Hakim, Raed Salem
Expose MACSEC_SALT_LEN definition to user space to be
used in various user space applications such as iproute.
Iprotue will use this as part of adding macsec extended
packet number support.
Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Emeel Hakim <ehakim@nvidia.com>
---
include/net/macsec.h | 1 -
include/uapi/linux/if_macsec.h | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/net/macsec.h b/include/net/macsec.h
index d6fa6b97f6ef..73780aa73644 100644
--- a/include/net/macsec.h
+++ b/include/net/macsec.h
@@ -14,7 +14,6 @@
#define MACSEC_DEFAULT_PN_LEN 4
#define MACSEC_XPN_PN_LEN 8
-#define MACSEC_SALT_LEN 12
#define MACSEC_NUM_AN 4 /* 2 bits for the association number */
typedef u64 __bitwise sci_t;
diff --git a/include/uapi/linux/if_macsec.h b/include/uapi/linux/if_macsec.h
index 3af2aa069a36..d5b6d1f37353 100644
--- a/include/uapi/linux/if_macsec.h
+++ b/include/uapi/linux/if_macsec.h
@@ -22,6 +22,8 @@
#define MACSEC_KEYID_LEN 16
+#define MACSEC_SALT_LEN 12
+
/* cipher IDs as per IEEE802.1AE-2018 (Table 14-1) */
#define MACSEC_CIPHER_ID_GCM_AES_128 0x0080C20001000001ULL
#define MACSEC_CIPHER_ID_GCM_AES_256 0x0080C20001000002ULL
--
2.21.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next 1/1] net: macsec: Expose MACSEC_SALT_LEN definition to user space
2022-08-17 10:58 [PATCH net-next 1/1] net: macsec: Expose MACSEC_SALT_LEN definition to user space Emeel Hakim
@ 2022-08-17 13:01 ` Sabrina Dubroca
0 siblings, 0 replies; 2+ messages in thread
From: Sabrina Dubroca @ 2022-08-17 13:01 UTC (permalink / raw)
To: Emeel Hakim
Cc: edumazet, mayflowerera, kuba, pabeni, netdev, linux-kernel, Raed Salem
2022-08-17, 13:58:15 +0300, Emeel Hakim wrote:
> Expose MACSEC_SALT_LEN definition to user space to be
> used in various user space applications such as iproute.
> Iprotue will use this as part of adding macsec extended
nit: spelling of "Iproute"
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
--
Sabrina
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-17 13:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-17 10:58 [PATCH net-next 1/1] net: macsec: Expose MACSEC_SALT_LEN definition to user space Emeel Hakim
2022-08-17 13:01 ` Sabrina Dubroca
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).