mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
net: ngbevf: add link update flow
Add link update flow to wangxun 1G virtual functions. Get link status from pf in mbox, and if it is failed then check the vx_status, because vx_status switching is too slow. Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com> Link: https://patch.msgid.link/20250704094923.652-13-mengyuanlou@net-swift.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
0f71e3a6e5
commit
cfeedf6a42
|
|
@ -197,6 +197,7 @@ static int ngbevf_probe(struct pci_dev *pdev,
|
|||
eth_hw_addr_set(netdev, wx->mac.perm_addr);
|
||||
ether_addr_copy(netdev->perm_addr, wx->mac.addr);
|
||||
|
||||
wxvf_init_service(wx);
|
||||
err = wx_init_interrupt_scheme(wx);
|
||||
if (err)
|
||||
goto err_free_sw_init;
|
||||
|
|
@ -213,6 +214,8 @@ static int ngbevf_probe(struct pci_dev *pdev,
|
|||
err_register:
|
||||
wx_clear_interrupt_scheme(wx);
|
||||
err_free_sw_init:
|
||||
timer_delete_sync(&wx->service_timer);
|
||||
cancel_work_sync(&wx->service_task);
|
||||
kfree(wx->vfinfo);
|
||||
kfree(wx->rss_key);
|
||||
kfree(wx->mac_table);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user