Skip to content

Cleanup and optimizations to transmit code

Shinas Rasheed lkml netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/24 patches 0 repliesApplied 4/4
  2. v3 posting 1/24 patches 1 replySuperseded
  3. v24 patches 10 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches3 repliesSuperseded

Changes in v3 from the cover letter

- Stop returning NETDEV_TX_BUSY when ring is full in xmit_patch. Change to inspect early if next packet can fit in ring instead of current packet, and stop queue if not.
- Add smp_mb between stopping tx queue and checking if tx queue has free entries again, in queue full check function to let reflect IQ process completions that might have happened on other cpus.
- Update small packet padding patch changelog to give more info.
V2: https://lore.kernel.org/all/[email protected]/
- Added patch for padding small packets to ETH_ZLEN, part of optimization patches for transmit code missed out in V1
- Updated changelog to provide more details for dma_sync remove patch
- Updated changelog to use imperative tone in add xmit_more patch
V1: https://lore.kernel.org/all/[email protected]/

Patches in v3 posting 2/2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4octeon_ep: add padding for small packetsdrivers/net/ethernet/marvell/octeon_ep/octep_main.c+3 -00 repliesApplied
2/4octeon_ep: remove dma sync in trasmit pathdrivers/net/ethernet/marvell/octeon_ep/octep_main.c+0 -70 repliesApplied
3/4octeon_ep: implement xmit_more in transmitdrivers/net/ethernet/marvell/octeon_ep/octep_config.h drivers/net/ethernet/marvell/octeon_ep/octep_main.c+28 -100 repliesApplied
4/4octeon_ep: remove atomic variable usage in Tx data pathdrivers/net/ethernet/marvell/octeon_ep/octep_config.h drivers/net/ethernet/marvell/octeon_ep/octep_main.c drivers/net/ethernet/marvell/octeon_ep/octep_main.h +2 more+14 -130 repliesApplied

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH net-next v3 RESEND 0/4] Cleanup and optimizations to transmit code

Pad small packets to ETH_ZLEN before transmit, cleanup dma sync calls, add xmit_more functionality and then further remove atomic variable usage in the prior.

Changes:
V3:
- Stop returning NETDEV_TX_BUSY when ring is full in xmit_patch. Change to inspect early if next packet can fit in ring instead of current packet, and stop queue if not.
- Add smp_mb between stopping tx queue and checking if tx queue has free entries again, in queue full check function to let reflect IQ process completions that might have happened on other cpus.
- Update small packet padding patch changelog to give more info.
V2: https://lore.kernel.org/all/[email protected]/
- Added patch for padding small packets to ETH_ZLEN, part of optimization patches for transmit code missed out in V1
- Updated changelog to provide more details for dma_sync remove patch
- Updated changelog to use imperative tone in add xmit_more patch
V1: https://lore.kernel.org/all/[email protected]/

Shinas Rasheed (4):
octeon_ep: add padding for small packets
octeon_ep: remove dma sync in trasmit path
octeon_ep: implement xmit_more in transmit
octeon_ep: remove atomic variable usage in Tx data path

 .../ethernet/marvell/octeon_ep/octep_config.h |  3 +-
 .../ethernet/marvell/octeon_ep/octep_main.c   | 55 +++++++++++--------
 .../ethernet/marvell/octeon_ep/octep_main.h   |  9 +++
 .../net/ethernet/marvell/octeon_ep/octep_tx.c |  5 +-
 .../net/ethernet/marvell/octeon_ep/octep_tx.h |  3 -
 5 files changed, 45 insertions(+), 30 deletions(-)
Signature · 1 line
2.25.1