mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
bnxt_en: Reserve rings in bnxt_set_channels() if device is down.
The current code does not reserve rings during ethtool -L when the device is down. The rings will be reserved when the device is later opened. Change it to reserve rings during ethtool -L when the device is down. This provides a better guarantee that the device open will be successful when the rings are reserved ahead of time. Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cabfb09d87
commit
d8c09f19ac
1 changed files with 2 additions and 0 deletions
|
|
@ -584,6 +584,8 @@ static int bnxt_set_channels(struct net_device *dev,
|
|||
* to renable
|
||||
*/
|
||||
}
|
||||
} else {
|
||||
rc = bnxt_reserve_rings(bp);
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue