bnxt_en: Reserve rings in bnxt_set_channels() if device is down.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 26 Apr 2018 21:44:41 +0000 (17:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:47:31 +0000 (14:47 -0400)
commitd8c09f19accb89fc08b246339abb005455e4c846
treece53317cb7401b851c02ece8dd86a2fbb8bfdd84
parentcabfb09d87bd7980cb4e39bd2ce679a788eb7e7a
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>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c