Jakub Kicinski 271e5b7d00 net: add netif_set_real_num_queues() for device reconfig
netif_set_real_num_rx_queues() and netif_set_real_num_tx_queues()
can fail which breaks drivers trying to implement reconfiguration
in a way that can't leave the device half-broken. In other words
those functions are incompatible with prepare/commit approach.

Luckily setting real number of queues can fail only if the number
is increased, meaning that if we order operations correctly we
can guarantee ending up with either new config (success), or
the old one (on error).

Provide a helper implementing such logic so that drivers don't
have to duplicate it.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-08-04 10:05:13 +01:00
..
2020-04-20 12:43:24 -07:00
2021-08-03 11:51:10 +01:00
2021-08-04 10:01:26 +01:00
2021-07-22 00:52:04 -07:00
2021-08-03 11:21:39 +01:00
2021-07-29 15:06:49 +01:00
2020-06-18 20:46:23 -07:00