|
@@ -299,6 +299,9 @@ void hclgevf_update_link_status(struct hclgevf_dev *hdev, int link_state)
|
|
|
|
|
|
client = handle->client;
|
|
client = handle->client;
|
|
|
|
|
|
|
|
+ link_state =
|
|
|
|
+ test_bit(HCLGEVF_STATE_DOWN, &hdev->state) ? 0 : link_state;
|
|
|
|
+
|
|
if (link_state != hdev->hw.mac.link) {
|
|
if (link_state != hdev->hw.mac.link) {
|
|
client->ops->link_status_change(handle, !!link_state);
|
|
client->ops->link_status_change(handle, !!link_state);
|
|
hdev->hw.mac.link = link_state;
|
|
hdev->hw.mac.link = link_state;
|