• Huazhong Tan's avatar
    net: hns3: add PCIe FLR support for VF · 6ff3cf07
    Huazhong Tan authored
    This patch implements the .reset_prepare and .reset_done
    ops from pci framework to support the VF FLR.
    
    This patch uses hclgevf_set_def_reset_request() and
    hclgevf_reset_event() to handle FLR, so when
    hdev->default_reset_request is non zero, it means there is
    some reset requseted by hclgevf_set_def_reset_request() need
    to be processed. Also get the hdev from the ae_dev because
    hclgevf_reset_event is called with handle being NULL.
    Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6ff3cf07
hclgevf_main.c 62 KB