aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/if_macsec.h
diff options
context:
space:
mode:
authorEmeel Hakim <ehakim@nvidia.com>2022-08-18 18:32:30 +0300
committerJakub Kicinski <kuba@kernel.org>2022-08-18 20:37:35 -0700
commit5d81757835859760a38a54a87eff856d4e578836 (patch)
tree93cee63089b8acb413f020a0b0ecd0a149f4b4d8 /include/uapi/linux/if_macsec.h
parentMerge branch 'add-dt-property-to-disable-hibernation-mode' (diff)
downloadlinux-dev-5d81757835859760a38a54a87eff856d4e578836.tar.xz
linux-dev-5d81757835859760a38a54a87eff856d4e578836.zip
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. Reviewed-by: Raed Salem <raeds@nvidia.com> Reviewed-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: Emeel Hakim <ehakim@nvidia.com> Link: https://lore.kernel.org/r/20220818153229.4721-1-ehakim@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi/linux/if_macsec.h')
-rw-r--r--include/uapi/linux/if_macsec.h2
1 files changed, 2 insertions, 0 deletions
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