Skip to contentSkip to conversation

net: macsec: Expose MACSEC_SALT_LEN definition to user space

PATCH Applied Emeel Hakim 2 participants 2 messages Aug 18, 2022 – Aug 19, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 net: macsec: Expose MACSEC_SALT_LEN definition to user space

Expose MACSEC_SALT_LEN definition to user space to be used in various user space applications such as iproute. Iproute will use this as part of adding macsec extended packet number support.

---
v1 -> v2: Typo fix
v2 -> v3: The "right" typo fix

 include/net/macsec.h           | 1 -
 include/uapi/linux/if_macsec.h | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)
include/net/macsec.h +0 -1
index d6fa6b97f6ef..73780aa73644 100644
@@ -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;
include/uapi/linux/if_macsec.h +2 -0
index 3af2aa069a36..d5b6d1f37353 100644
@@ -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
Signature · 1 line
2.21.3
#1 lore raw
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Quoted 10 lines · On Thu, 18 Aug 2022 18:32:30 +0300 you wrote:

Expose MACSEC_SALT_LEN definition to user space to be used in various user space applications such as iproute. Iproute will use this as part of adding macsec extended packet number support.

[...]

Here is the summary with links:
- [net-next,v3,1/1] net: macsec: Expose MACSEC_SALT_LEN definition to user space

    https://git.kernel.org/netdev/net-next/c/5d8175783585

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html