提交 f72099e0 编写于 作者: S Somnath Kotur 提交者: David S. Miller

be2net: Issue COMMON_RESET_FUNCTION cmd during driver unload

As per SLI guideline, drivers need to issue COMMON_RESET_FUNCTION SLI
cmd during driver unload to clean up any non-persistent state
information.
Issue this cmd only if VFs are not assigned to VMs as it is possible
for PF driver to unload while it\'s VF remains functional and assigned
to a VM.
Signed-off-by: NSomnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: NSriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 710f3e59
......@@ -5706,6 +5706,9 @@ static void be_remove(struct pci_dev *pdev)
be_clear(adapter);
if (!pci_vfs_assigned(adapter->pdev))
be_cmd_reset_function(adapter);
/* tell fw we're done with firing cmds */
be_cmd_fw_clean(adapter);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册