nvethernet: update speed and mode in fixed link

Issue: in caseof interface down and up the speed
and mode values are incorrect incase of fixed link

Fix: In case of fixed link restore speed and mode
values based on the iface mode

Bug 3359851
Bug 200765222

Change-Id: Iacd1cb2212c0783bb5e361205cbf62f64b197325
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2584629
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Narayan Reddy
2021-08-27 17:36:44 +00:00
committed by Revanth Kumar Uppala
parent f415855538
commit 36d784d40e
2 changed files with 13 additions and 0 deletions

View File

@@ -571,6 +571,8 @@ struct ether_priv_data {
unsigned int mdio_addr;
/** Skip MAC reset */
unsigned int skip_mac_reset;
/** Fixed link enable/disable */
unsigned int fixed_link;
};
/**