Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8c09f19 authored by Michael Chan's avatar Michael Chan Committed by David S. Miller
Browse files

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: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cabfb09d
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -584,6 +584,8 @@ static int bnxt_set_channels(struct net_device *dev,
			 * to renable
			 * to renable
			 */
			 */
		}
		}
	} else {
		rc = bnxt_reserve_rings(bp);
	}
	}


	return rc;
	return rc;