Commit d09f698
be2net: remove wrong and unnecessary calls to netif_carrier_off()
1) In be_probe(), as soon as the MCC Q is created a gratuitous link status
event is received and processed. Accordingly netif_carrier_off/on() is called.
The extra netif_carrier_off() call in probe can race with this and cause wrong
state.
2) be_close() need not call netif_carrier_off(). It is OK to show the actual
link state even when the device is administratively down.
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent a9b3cd7 commit d09f698
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2217 | 2217 | | |
2218 | 2218 | | |
2219 | 2219 | | |
2220 | | - | |
2221 | 2220 | | |
2222 | 2221 | | |
2223 | 2222 | | |
| |||
3345 | 3344 | | |
3346 | 3345 | | |
3347 | 3346 | | |
3348 | | - | |
3349 | 3347 | | |
3350 | 3348 | | |
3351 | 3349 | | |
| |||
0 commit comments