]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
Revert "UBUNTU: SAUCE: {topost} net: hns3: Add calling roce callback function when...
[mirror_ubuntu-bionic-kernel.git] / drivers / net / ethernet / hisilicon / hns3 / hns3vf / hclgevf_main.c
index 33f59bc7b297bfd13789bca048a46a8cb7511917..9c0091f2addfcff7bd565963c43003b210c3d571 100644 (file)
@@ -295,16 +295,12 @@ static void hclgevf_request_link_info(struct hclgevf_dev *hdev)
 void hclgevf_update_link_status(struct hclgevf_dev *hdev, int link_state)
 {
        struct hnae3_handle *handle = &hdev->nic;
-       struct hnae3_client *rclient;
        struct hnae3_client *client;
 
        client = handle->client;
-       rclient = hdev->roce_client;
 
        if (link_state != hdev->hw.mac.link) {
                client->ops->link_status_change(handle, !!link_state);
-               if (rclient && rclient->ops->link_status_change)
-                       rclient->ops->link_status_change(handle, !!link_state);
                hdev->hw.mac.link = link_state;
        }
 }