[Impact]
After hot-plug the Ethernet cable, the status of Ethernet is always down.
[Fix]
Because ASPM is enabled on RTL8106E, the link change interrupt can't be fired immediately.
Need to wait a long time to get the link change interrupt.
Introduce a polling method to watch the link status and disable the link change interrupt for RTL8106E.
[Test]
Verified on machines with Realtek Ethernet device, the Ethernet works well after hotplug 30 times.
[Regression Potential]
High, may have some cases missed in link change polling method and will fix them in the future.
[Impact]
After hot-plug the Ethernet cable, the status of Ethernet is always down.
[Fix]
Because ASPM is enabled on RTL8106E, the link change interrupt can't be fired immediately.
Need to wait a long time to get the link change interrupt.
Introduce a polling method to watch the link status and disable the link change interrupt for RTL8106E.
[Test]
Verified on machines with Realtek Ethernet device, the Ethernet works well after hotplug 30 times.
[Regression Potential]
High, may have some cases missed in link change polling method and will fix them in the future.