forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork1
Commit7b2ee50
hv_netvsc: common detach logic
Make common function for detaching internals of deviceduring changes to MTU and RSS. Make sure no more packetsare transmitted and all packets have been received beforedoing device teardown.Change the wait logic to be common and use usleep_range().Changes transmit enabling logic so that transmit queues are disabledduring the period when lower device is being changed. And enabledonly after sub channels are setup. This avoids issue where it couldbe that a packet was being sent while subchannel was not initialized.Fixes:8195b13 ("hv_netvsc: fix deadlock on hotplug")Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>Signed-off-by: David S. Miller <davem@davemloft.net>1 parent0ef58b0 commit7b2ee50
File tree
4 files changed
+173
-143
lines changed- drivers/net/hyperv
4 files changed
+173
-143
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
212 | 212 |
| |
213 | 213 |
| |
214 | 214 |
| |
215 |
| - | |
216 | 215 |
| |
217 | 216 |
| |
218 | 217 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
555 | 555 |
| |
556 | 556 |
| |
557 | 557 |
| |
558 |
| - | |
559 |
| - | |
560 | 558 |
| |
561 | 559 |
| |
562 | 560 |
| |
| |||
643 | 641 |
| |
644 | 642 |
| |
645 | 643 |
| |
646 |
| - | |
647 |
| - | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
648 | 649 |
| |
649 |
| - | |
650 |
| - | |
651 |
| - | |
652 |
| - | |
653 |
| - | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
654 | 656 |
| |
655 | 657 |
| |
656 | 658 |
| |
|
0 commit comments
Comments
(0)