Skip to content

ionic memory usage rework

Shannon Nelson netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest12 patches 1 replyIn review
  2. v212 patches 5 repliesSuperseded
  3. v112 patches 6 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12ionic: set MTU floor at ETH_MIN_MTUdrivers/net/ethernet/pensando/ionic/ionic_lif.c+2 -10 replies
2/12ionic: fix up a couple of debug stringsdrivers/net/ethernet/pensando/ionic/ionic_lif.c+4 -30 replies
3/12ionic: use kcalloc for new arraysdrivers/net/ethernet/pensando/ionic/ionic_lif.c+4 -40 replies
4/12ionic: remove lif list conceptdrivers/net/ethernet/pensando/ionic/ionic.h drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c drivers/net/ethernet/pensando/ionic/ionic_dev.c +3 more+62 -1270 replies
5/12ionic: rework and simplify handling of the queue stats blockdrivers/net/ethernet/pensando/ionic/ionic_ethtool.c drivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h +2 more+92 -1490 replies
6/12ionic: clean up unnecessary non-static functionsdrivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h+2 -40 replies
7/12ionic: reduce contiguous memory allocation requirementdrivers/net/ethernet/pensando/ionic/ionic_debugfs.c drivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h+81 -540 replies
8/12ionic: use index not pointer for queue trackingdrivers/net/ethernet/pensando/ionic/ionic_debugfs.c drivers/net/ethernet/pensando/ionic/ionic_dev.c drivers/net/ethernet/pensando/ionic/ionic_dev.h +4 more+129 -880 replies
9/12ionic: change mtu without full queue rebuilddrivers/net/ethernet/pensando/ionic/ionic_lif.c+49 -80 replies
10/12ionic: change the descriptor ring length without full resetdrivers/net/ethernet/pensando/ionic/ionic_ethtool.c drivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h+185 -140 replies
11/12ionic: change queue count with no resetdrivers/net/ethernet/pensando/ionic/ionic_ethtool.c drivers/net/ethernet/pensando/ionic/ionic_lif.c+213 -910 replies
12/12ionic: pull reset_queues into tx_timeout handlerdrivers/net/ethernet/pensando/ionic/ionic_lif.c drivers/net/ethernet/pensando/ionic/ionic_lif.h+8 -320 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 net-next 00/12] ionic memory usage rework

Previous review comments have suggested [1],[2] that this driver needs to rework how queue resources are managed and reconfigured so that we don't do a full driver reset and to better handle potential allocation failures. This patchset is intended to address those comments.

The first few patches clean some general issues and simplify some of the memory structures. The last 4 patches specifically address queue parameter changes without a full ionic_stop()/ionic_open().

[1] https://lore.kernel.org/netdev/20200706103305.182bd727@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com/
[2] https://lore.kernel.org/netdev/[email protected]/

v3: use PTR_ALIGN without typecast
fix up Neel's attribution

v2: use PTR_ALIGN
recovery if netif_set_real_num_tx/rx_queues fails less racy queue bring up after reconfig common-ize the reconfig queue stop and start

Shannon Nelson (12):
ionic: set MTU floor at ETH_MIN_MTU
ionic: fix up a couple of debug strings
ionic: use kcalloc for new arrays
ionic: remove lif list concept
ionic: rework and simplify handling of the queue stats block
ionic: clean up unnecessary non-static functions
ionic: reduce contiguous memory allocation requirement
ionic: use index not pointer for queue tracking
ionic: change mtu without full queue rebuild
ionic: change the descriptor ring length without full reset
ionic: change queue count with no reset
ionic: pull reset_queues into tx_timeout handler

 drivers/net/ethernet/pensando/ionic/ionic.h   |   4 +-
 .../ethernet/pensando/ionic/ionic_bus_pci.c   |  32 +-
 .../ethernet/pensando/ionic/ionic_debugfs.c   |  29 +-
 .../net/ethernet/pensando/ionic/ionic_dev.c   |  46 +-
 .../net/ethernet/pensando/ionic/ionic_dev.h   |  49 +-
 .../ethernet/pensando/ionic/ionic_devlink.c   |   2 +-
 .../ethernet/pensando/ionic/ionic_ethtool.c   | 127 ++-
 .../net/ethernet/pensando/ionic/ionic_lif.c   | 785 +++++++++++-------
 .../net/ethernet/pensando/ionic/ionic_lif.h   |  94 ++-
 .../net/ethernet/pensando/ionic/ionic_main.c  |  26 +-
 .../net/ethernet/pensando/ionic/ionic_stats.c |  48 +-
 .../net/ethernet/pensando/ionic/ionic_txrx.c  |  82 +-
 12 files changed, 790 insertions(+), 534 deletions(-)
Signature · 1 line
2.17.1