mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
nvethernet: macsec suspend-resume with wol enabled
Issue: If WOL is enabled after running "./ethtool -s eth0 wol g" command there will not be any eapol frames transaction, hence macsec will be disabled. As macsec is disabled before suspend we are not enabling it back once resumed. Because of this eapol frames are also sent with sec-tag as byp_lut is not programmed. Fix: Instead of depending on the macsec state, check if there is any supplicant running, if there is any supplicant then enable the macsec post resume. Bug 3577131 Change-Id: I6018b94411034eebba34f5f0a9520907305c573e Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2694446 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-by: Mahesh Patil <maheshp@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Ashutosh Jha <ajha@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
76abafe3a3
commit
c7376b2390
@@ -205,8 +205,6 @@ struct macsec_priv_data {
|
||||
unsigned int protect_frames;
|
||||
/** MACsec enabled flags for Tx/Rx controller status */
|
||||
unsigned int enabled;
|
||||
/** MACsec enabled flags for Tx/Rx controller status before Suspend */
|
||||
unsigned int enabled_before_suspend;
|
||||
/** MACsec Rx PN Window */
|
||||
unsigned int pn_window;
|
||||
/** MACsec controller init reference count */
|
||||
|
||||
Reference in New Issue
Block a user