Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1437
b: refs/heads/master
c: b2e0852
h: refs/heads/master
i:
  1435: 1835623
v: v3
  • Loading branch information
Michael Ellerman authored and Jeff Garzik committed May 15, 2005
1 parent 6cf01fd commit c10f0a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41664c03f6c96a1f8a91714309b36f1b5ca85610
refs/heads/master: b2e0852e1eee7c445b1789bef41204b64f981102
11 changes: 9 additions & 2 deletions trunk/drivers/net/iseries_veth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1388,18 +1388,25 @@ void __exit veth_module_cleanup(void)
{
int i;

vio_unregister_driver(&veth_driver);
/* Stop the queues first to stop any new packets being sent. */
for (i = 0; i < HVMAXARCHITECTEDVIRTUALLANS; i++)
if (veth_dev[i])
netif_stop_queue(veth_dev[i]);

/* Stop the connections before we unregister the driver. This
* ensures there's no skbs lying around holding the device open. */
for (i = 0; i < HVMAXARCHITECTEDLPS; ++i)
veth_stop_connection(i);

HvLpEvent_unregisterHandler(HvLpEvent_Type_VirtualLan);

/* Hypervisor callbacks may have scheduled more work while we
* were destroying connections. Now that we've disconnected from
* were stoping connections. Now that we've disconnected from
* the hypervisor make sure everything's finished. */
flush_scheduled_work();

vio_unregister_driver(&veth_driver);

for (i = 0; i < HVMAXARCHITECTEDLPS; ++i)
veth_destroy_connection(i);

Expand Down

0 comments on commit c10f0a0

Please sign in to comment.