Skip to content

net/ionic: struct optimizations, fixes

Andrew Boyer dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 1 replyIn review
  2. v114 patches 1 replySuperseded

Changes in v2 from the cover letter

* Resend for new DPDK release cycle
* Insert a new patch "net/ionic: remove unused filter delete function" so that even more adminq code can be staticized
* Update second-to-last patch which was partially applied in 21.02

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15net/ionic: cut down completion queue structuredrivers/net/ionic/ionic_dev.c drivers/net/ionic/ionic_dev.h drivers/net/ionic/ionic_lif.c +2 more+27 -330 replies
2/15net/ionic: remove unused filter delete functiondrivers/net/ionic/ionic_dev.h drivers/net/ionic/ionic_rx_filter.c drivers/net/ionic/ionic_rx_filter.h+0 -160 replies
3/15net/ionic: consolidate adminq codedrivers/net/ionic/ionic.h drivers/net/ionic/ionic_dev.c drivers/net/ionic/ionic_dev.h +4 more+93 -1260 replies
4/15net/ionic: convert info array to generic pointersdrivers/net/ionic/ionic_dev.c drivers/net/ionic/ionic_dev.h drivers/net/ionic/ionic_main.c +1 more+31 -430 replies
5/15net/ionic: remove unused field from queue structuredrivers/net/ionic/ionic_dev.c drivers/net/ionic/ionic_dev.h drivers/net/ionic/ionic_lif.c +1 more+5 -130 replies
6/15net/ionic: remove unused interrupt free functiondrivers/net/ionic/ionic_lif.c drivers/net/ionic/ionic_lif.h+0 -80 replies
7/15net/ionic: cut down queue structuredrivers/net/ionic/ionic_dev.c drivers/net/ionic/ionic_dev.h drivers/net/ionic/ionic_lif.c +2 more+56 -530 replies
8/15net/ionic: split up queue-completion queue structuredrivers/net/ionic/ionic_lif.c drivers/net/ionic/ionic_lif.h drivers/net/ionic/ionic_main.c +1 more+195 -1530 replies
9/15net/ionic: use the socket id passed in for Rx and Tx queuesdrivers/net/ionic/ionic_lif.c drivers/net/ionic/ionic_lif.h drivers/net/ionic/ionic_rxtx.c+15 -90 replies
10/15net/ionic: log queue counters when tearing downdrivers/net/ionic/ionic_lif.h drivers/net/ionic/ionic_rxtx.c+12 -30 replies
11/15net/ionic: break up queue post functiondrivers/net/ionic/ionic_dev.c drivers/net/ionic/ionic_dev.h drivers/net/ionic/ionic_main.c +1 more+42 -170 replies
12/15net/ionic: ring doorbell once at the end of each burstdrivers/net/ionic/ionic_rxtx.c+13 -280 replies
13/15net/ionic: send as many packets as possibledrivers/net/ionic/ionic_rxtx.c+5 -40 replies
14/15net/ionic: store Tx fragment limit in queuedrivers/net/ionic/ionic_lif.c drivers/net/ionic/ionic_lif.h drivers/net/ionic/ionic_rxtx.c+9 -40 replies
15/15net/ionic: fix code around lif init devcmddrivers/net/ionic/ionic_lif.c+3 -20 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [dpdk-dev] [PATCH v2 00/15] net/ionic: struct optimizations, fixes

This patch series reorganizes the main datastructure for each queue, struct ionic_qcq. Its constituent struct ionic_queue and struct ionic_cq are stripped down first. Then the generic struct ionic_qcq is stripped down, and a unique struct is created for each queue type.

The adminq code is consolidated into ionic_main.c as part of the cleanup.

Next comes some minor performance fixups related to queue posting and doorbells.

Finally, a minor improvement to Tx packet prep and a minor fix for LIF init.

--
v2:
* Resend for new DPDK release cycle
* Insert a new patch "net/ionic: remove unused filter delete function" so that even more adminq code can be staticized
* Update second-to-last patch which was partially applied in 21.02

Andrew Boyer (15):
net/ionic: cut down completion queue structure net/ionic: remove unused filter delete function net/ionic: consolidate adminq code
net/ionic: convert info array to generic pointers net/ionic: remove unused field from queue structure net/ionic: remove unused interrupt free function net/ionic: cut down queue structure
net/ionic: split up queue-completion queue structure net/ionic: use the socket id passed in for Rx and Tx queues net/ionic: log queue counters when tearing down net/ionic: break up queue post function net/ionic: ring doorbell once at the end of each burst net/ionic: send as many packets as possible net/ionic: store Tx fragment limit in queue net/ionic: fix code around lif init devcmd

 drivers/net/ionic/ionic.h           |  13 +-
 drivers/net/ionic/ionic_dev.c       | 132 +-------------
 drivers/net/ionic/ionic_dev.h       |  82 +++------
 drivers/net/ionic/ionic_lif.c       | 242 +++++++++++++------------
 drivers/net/ionic/ionic_lif.h       |  77 +++++---
 drivers/net/ionic/ionic_main.c      |  95 +++++++++-
 drivers/net/ionic/ionic_rx_filter.c |  15 +-
 drivers/net/ionic/ionic_rx_filter.h |   1 -
 drivers/net/ionic/ionic_rxtx.c      | 265 ++++++++++++++++------------
 9 files changed, 458 insertions(+), 464 deletions(-)
Signature · 1 line
2.17.1