Skip to content

net: ipa: a mix of small improvements

Alex Elder lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/27 patches 1 replyIn review
  2. v2 posting 1/27 patches 0 repliesSuperseded
  3. v17 patches 4 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7net: ipa: move mutex calls into __gsi_channel_stop()drivers/net/ipa/gsi.c+17 -110 replies
2/7net: ipa: synchronize NAPI only for suspenddrivers/net/ipa/gsi.c+10 -80 replies
3/7net: ipa: do not cache event ring statedrivers/net/ipa/gsi.c drivers/net/ipa/gsi.h+21 -190 replies
4/7net: ipa: remove two unused register definitionsdrivers/net/ipa/gsi_reg.h+0 -100 replies
5/7net: ipa: use a Boolean rather than count when replenishingdrivers/net/ipa/ipa_endpoint.c+19 -160 replies
6/7net: ipa: get rid of status size constraintdrivers/net/ipa/ipa_endpoint.c+0 -30 replies
7/7net: ipa: avoid field overflowdrivers/net/ipa/ipa_reg.h+14 -80 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/7] net: ipa: a mix of small improvements

Version 2 of this series restructures a couple of the changed functions (in patches 1 and 2) to avoid blocks of indented code by returning early when possible, as suggested by Jakub. The description of the first patch was changed as a result, to better reflect what the updated patch does. It also fixes one spot I identified when updating the code, where gsi_channel_stop() was doing the wrong thing on error.

The original description for this series is below.

-Alex

This series contains a sort of unrelated set of code cleanups.

The first two are things I wanted to do in a series that updated some NAPI code recently. I didn't want to change things in a way that affected existing testing so I set these aside for later (i.e., now).

The third makes a change to event ring handling that's similar to what was done a while back for channels. There's little benefit to cacheing the current state of an event ring, so with this we'll just fetch the state from hardware whenever we need it.

The fourth patch removes the definitions of two unused symbols.

The fifth replaces a count that is always 0 or 1 with a Boolean.

The sixth removes a build-time validation check that doesn't really provide benefit.

And the last one fixes a problem (in two spots) that could cause a build-time check to fail "bogusly".

-Alex

Alex Elder (7):
net: ipa: move mutex calls into __gsi_channel_stop()
net: ipa: synchronize NAPI only for suspend
net: ipa: do not cache event ring state
net: ipa: remove two unused register definitions
net: ipa: use a Boolean rather than count when replenishing
net: ipa: get rid of status size constraint
net: ipa: avoid field overflow

 drivers/net/ipa/gsi.c          | 69 ++++++++++++++++++++--------------
 drivers/net/ipa/gsi.h          |  1 -
 drivers/net/ipa/gsi_reg.h      | 10 -----
 drivers/net/ipa/ipa_endpoint.c | 38 +++++++++----------
 drivers/net/ipa/ipa_reg.h      | 22 +++++++----
 5 files changed, 73 insertions(+), 67 deletions(-)
Signature · 1 line
2.20.1