nvethernet: Add aes 128/256bit macsec config

Adding aes 128/256 bit config support through sysfs node

Bug 3257779

Change-Id: I53b05842484d4ae0e9c51439415d35b171852574
Signed-off-by: Mahesh Patil <maheshp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2484203
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Mahesh Patil
2021-02-12 12:10:14 -08:00
committed by Revanth Kumar Uppala
parent e061e50704
commit 90a4dce1fb
2 changed files with 84 additions and 0 deletions

View File

@@ -147,6 +147,8 @@ struct macsec_priv_data {
char irq_name[2][MACSEC_IRQ_NAME_SZ];
/** loopback mode */
unsigned int loopback_mode;
/** macsec cipher, aes128 or aes256 bit */
unsigned int cipher;
/** MACsec protect frames variable */
unsigned int protect_frames;
/** MACsec enabled flags for Tx/Rx controller status */