osi: MACSec: Update IPG changes for EQoS MACSec

Issue: IPG is not updated when MACsec is enabled for Thor

Fix: Removed the check to program IPG only if MAC type is Orin

Bug 4768403

Change-Id: I68ddac02d241a94e0a270d15d3c441fb7fc945a7
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/3188748
Reviewed-by: Krishna Thota <kthota@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Mahesh Patil <maheshp@nvidia.com>
This commit is contained in:
Sanath Kumar Gampa
2024-08-06 06:15:37 +00:00
committed by mobile promotions
parent 26c551ceba
commit 35d0eb1f7d

View File

@@ -4130,7 +4130,6 @@ static void eqos_config_for_macsec(struct osi_core_priv_data *const osi_core,
{
nveu32_t value = 0U, temp = 0U;
if (osi_core->mac_ver == OSI_EQOS_MAC_5_30) {
/* stop MAC Tx */
eqos_config_mac_tx(osi_core, OSI_DISABLE);
if (enable == OSI_ENABLE) {
@@ -4169,7 +4168,6 @@ static void eqos_config_for_macsec(struct osi_core_priv_data *const osi_core,
}
/* start MAC Tx */
eqos_config_mac_tx(osi_core, OSI_ENABLE);
}
/* Updated MTL_EST depending on MACSEC enable/disable */
value = osi_readla(osi_core,