netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 net-next 0/5] ibmvnic: Make driver resources dynamic
@ 2018-02-19 19:29 Nathan Fontenot
  2018-02-19 19:30 ` [PATCH V3 net-next 1/5] ibmvnic: Rename active queue count variables Nathan Fontenot
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Nathan Fontenot @ 2018-02-19 19:29 UTC (permalink / raw)
  To: netdev; +Cc: jallen, tlfalcon

The ibmvnic driver needs to be able to handle the number of tx/rx
sub-crqs changing during a reset of the driver. To do this several
changes need to be made. First the num_active_[tx|rx]_pools
counters need to be re-named to num_active_[tc|rx]_scrqs, and
updated after resource initialization.

With this change we can now release and init the sub crqs and napi
(for rx sub crqs) when the number of sub crqs change.

Lastly, the stats buffer allocation is updated to always allocate
the maximum number of sub-crqs count of stats buffers.

-Nathan
---

Updates for V3:
Patch 3/5 - Make do_h_free parameter a bool

Updates for V2: 
Patch 3/5 - Use correct queue count when driver is in probed state
for releasing sub crqs.


Nathan Fontenot (5):
      ibmvnic: Rename active queue count variables
      ibmvnic: Move active sub-crq count settings
      ibmvnic: Free and re-allocate scrqs when tx/rx scrqs change
      ibmvnic: Make napi usage dynamic
      ibmvnic: Allocate max queues stats buffers


 drivers/net/ethernet/ibm/ibmvnic.c |  170 +++++++++++++++++++++++-------------
 drivers/net/ethernet/ibm/ibmvnic.h |    4 -
 2 files changed, 110 insertions(+), 64 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-02-21 19:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-19 19:29 [PATCH V3 net-next 0/5] ibmvnic: Make driver resources dynamic Nathan Fontenot
2018-02-19 19:30 ` [PATCH V3 net-next 1/5] ibmvnic: Rename active queue count variables Nathan Fontenot
2018-02-19 19:30 ` [PATCH V3 net-next 2/5] ibmvnic: Move active sub-crq count settings Nathan Fontenot
2018-02-19 19:30 ` [PATCH V3 net-next 3/5] ibmvnic: Free and re-allocate scrqs when tx/rx scrqs change Nathan Fontenot
2018-02-19 19:30 ` [PATCH V3 net-next 4/5] ibmvnic: Make napi usage dynamic Nathan Fontenot
2018-02-19 19:30 ` [PATCH V3 net-next 5/5] ibmvnic: Allocate max queues stats buffers Nathan Fontenot
2018-02-21 19:22 ` [PATCH V3 net-next 0/5] ibmvnic: Make driver resources dynamic David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).