Skip to content

net: tso: expand to UDP support

Eric Dumazet netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyIn review
  2. v15 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6octeontx2-af: change (struct qmem)->entry_sz from u8 to u16drivers/net/ethernet/marvell/octeontx2/af/common.h+1 -10 replies
2/6net: tso: double TSO_HEADER_SIZE valueinclude/net/tso.h+1 -10 replies
3/6net: tso: shrink struct tso_tinclude/net/tso.h+6 -60 replies
4/6net: tso: constify tso_count_descs() and friendsinclude/net/tso.h net/core/tso.c+6 -60 replies
5/6net: tso: cache transport header lengthdrivers/net/ethernet/cavium/thunder/nicvf_queues.c drivers/net/ethernet/freescale/fec_main.c drivers/net/ethernet/marvell/mv643xx_eth.c +5 more+24 -220 replies
6/6net: tso: add UDP segmentation supportnet/core/tso.c+18 -110 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 net-next 0/6] net: tso: expand to UDP support

With QUIC getting more attention these days, it is worth implementing UDP direct segmentation, the same we did for TCP.

Drivers will need to advertize NETIF_F_GSO_UDP_L4 so that GSO stack does not do the (more expensive) segmentation.

Note the two first patches are stable candidates, after tests confirm they do not add regressions.

v2: addressed Jakub feedback :
1) Added a prep patch for octeontx2-af
2) calls tso_start() earlier in otx2_sq_append_tso()

Eric Dumazet (6):
octeontx2-af: change (struct qmem)->entry_sz from u8 to u16
net: tso: double TSO_HEADER_SIZE value
net: tso: shrink struct tso_t
net: tso: constify tso_count_descs() and friends
net: tso: cache transport header length
net: tso: add UDP segmentation support

 .../ethernet/cavium/thunder/nicvf_queues.c    |  5 ++-
 drivers/net/ethernet/freescale/fec_main.c     |  5 +--
 drivers/net/ethernet/marvell/mv643xx_eth.c    |  5 +--
 drivers/net/ethernet/marvell/mvneta.c         |  5 +--
 .../net/ethernet/marvell/mvpp2/mvpp2_main.c   |  6 +--
 .../ethernet/marvell/octeontx2/af/common.h    |  2 +-
 .../marvell/octeontx2/nic/otx2_txrx.c         |  6 +--
 include/net/tso.h                             | 23 +++++-----
 net/core/tso.c                                | 44 ++++++++++++-------
 9 files changed, 55 insertions(+), 46 deletions(-)
Signature · 1 line
2.27.0.290.gba653c62da-goog