nvethernet:MACSEC preempt/ctrl-port config via LUT

Issue: There is no provision to program the preempt or
control-port fields in SCI or BYP LUTs

Fix: Added changes in sysfs programming to add this
support

Bug 200778243

Change-Id: I60f5bb3f21a0bf5aeb72ffdbb9db376812bef4fa
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2600109
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-by: Mahesh Patil <maheshp@nvidia.com>
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Sanath Kumar Gampa
2021-09-24 17:59:21 +05:30
committed by Revanth Kumar Uppala
parent a91720a4d7
commit dc3d0a02f7
2 changed files with 33 additions and 4 deletions

View File

@@ -28,6 +28,17 @@
#include <net/genetlink.h>
#include <linux/crypto.h>
/**
* @brief Expected number of inputs in BYP or SCI LUT sysfs config
*/
#define LUT_INPUTS_LEN 39
/**
* @brief Expected number of extra inputs in BYP LUT sysfs config
*/
#define BYP_LUT_INPUTS 1
/**
* @brief Size of Macsec IRQ name.
*/