Skip to content

BIG TCP without HBH in IPv6

Alice Mikityanska netdev 2 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. v5 Latest12 patches 0 repliesApplied 12/12
  2. v211 patches 1 replySuperseded

Patches in v5 All 12 applied

#Subject and filesSizeRepliesApplied
1/12net/ipv6: Introduce payload_len helpersinclude/linux/ipv6.h include/net/ipv6.h include/net/netfilter/nf_tables_ipv6.h +9 more+34 -220 repliesApplied
2/12net/ipv6: Drop HBH for BIG TCP on TX sideinclude/linux/ipv6.h net/ipv6/ip6_output.c+3 -180 repliesApplied
3/12net/ipv6: Drop HBH for BIG TCP on RX sidenet/core/gro.c net/ipv6/ip6_offload.c+1 -290 repliesApplied
4/12net/ipv6: Remove jumbo_remove step from TX pathnet/core/dev.c net/ipv6/ip6_offload.c+3 -80 repliesApplied
5/12net/mlx5e: Remove jumbo_remove step from TX pathdrivers/net/ethernet/mellanox/mlx5/core/en_tx.c+12 -630 repliesApplied
6/12net/mlx4: Remove jumbo_remove step from TX pathdrivers/net/ethernet/mellanox/mlx4/en_tx.c+8 -340 repliesApplied
7/12ice: Remove jumbo_remove step from TX pathdrivers/net/ethernet/intel/ice/ice_txrx.c+0 -30 repliesApplied
8/12bnxt_en: Remove jumbo_remove step from TX pathdrivers/net/ethernet/broadcom/bnxt/bnxt.c+0 -210 repliesApplied
9/12gve: Remove jumbo_remove step from TX pathdrivers/net/ethernet/google/gve/gve_tx_dqo.c+0 -30 repliesApplied
10/12net: mana: Remove jumbo_remove step from TX pathdrivers/net/ethernet/microsoft/mana/mana_en.c+0 -30 repliesApplied
11/12bng_en: Remove jumbo_remove step from TX pathdrivers/net/ethernet/broadcom/bnge/bnge_txrx.c+0 -30 repliesApplied
12/12net/ipv6: Remove HBH helpersinclude/net/ipv6.h+0 -770 repliesApplied

Reviews trailers per patch

11 of 12 patches have a Reviewed-by or Acked-by.

PatchPaolo AbeniEric DumazetMichael Chan
1/12A-b R-b
2/12A-b R-b
3/12A-b R-b
4/12A-b R-b
5/12A-b R-b
6/12A-b R-b
7/12A-b R-b
8/12A-b R-b R-b
9/12A-b R-b
10/12A-b R-b
11/12
12/12A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH net-next v5 00/12] BIG TCP without HBH in IPv6

From: Alice Mikityanska <[email protected]>

Resubmitting after the grace period.

This series is part 1 of "BIG TCP for UDP tunnels". Due to the number of patches, I'm splitting it into two logical parts:

* Remove hop-by-hop header for BIG TCP IPv6 to align with BIG TCP IPv4.
* Fix up things that prevent BIG TCP from working with UDP tunnels.

The current BIG TCP IPv6 code inserts a hop-by-hop extension header with 32-bit length of the packet. When the packet is encapsulated, and either the outer or the inner protocol is IPv6, or both are IPv6, there will be 1 or 2 HBH headers that need to be dealt with. The issues that arise:

1. The drivers don't strip it, and they'd all need to know the structure of each tunnel protocol in order to strip it correctly, also taking into account all combinations of IPv4/IPv6 inner/outer protocols.

2. Even if (1) is implemented, it would be an additional performance penalty per aggregated packet.

3. The skb_gso_validate_network_len check is skipped in ip6_finish_output_gso when IP6SKB_FAKEJUMBO is set, but it seems that it would make sense to do the actual validation, just taking into account the length of the HBH header. When the support for tunnels is added, it becomes trickier, because there may be one or two HBH headers, depending on whether it's IPv6 in IPv6 or not.

At the same time, having an HBH header to store the 32-bit length is not strictly necessary, as BIG TCP IPv4 doesn't do anything like this and just restores the length from skb->len. The same thing can be done for BIG TCP IPv6. Removing HBH from BIG TCP would allow to simplify the implementation significantly, and align it with BIG TCP IPv4, which has been a long-standing goal.

v1: https://lore.kernel.org/netdev/[email protected]/

v2: https://lore.kernel.org/netdev/[email protected]/

v2 changes:

Split the series into two parts. Address the review comments in part 2 (details follow with part 2).

v3: https://lore.kernel.org/netdev/[email protected]/

v3 changes:

No code changes. Added Paolo's ACK. Tcpdump patches have been merged and unblocked the series:

https://github.com/the-tcpdump-group/tcpdump/pull/1329

v4 changes:

Added one more patch for bng_en, because it started using ipv6_hopopt_jumbo_remove in the meanwhile. Added Eric's Reviewed-by.

v4: https://lore.kernel.org/netdev/[email protected]/

v5 changes:

Rebased to solve minor conflicts.

Alice Mikityanska (12):
net/ipv6: Introduce payload_len helpers net/ipv6: Drop HBH for BIG TCP on TX side net/ipv6: Drop HBH for BIG TCP on RX side net/ipv6: Remove jumbo_remove step from TX path net/mlx5e: Remove jumbo_remove step from TX path net/mlx4: Remove jumbo_remove step from TX path
ice: Remove jumbo_remove step from TX path
bnxt_en: Remove jumbo_remove step from TX path
gve: Remove jumbo_remove step from TX path
net: mana: Remove jumbo_remove step from TX path
bng_en: Remove jumbo_remove step from TX path net/ipv6: Remove HBH helpers

 .../net/ethernet/broadcom/bnge/bnge_txrx.c    |  3 -
 drivers/net/ethernet/broadcom/bnxt/bnxt.c     | 21 -----
 drivers/net/ethernet/google/gve/gve_tx_dqo.c  |  3 -
 drivers/net/ethernet/intel/ice/ice_txrx.c     |  3 -
 drivers/net/ethernet/mellanox/mlx4/en_tx.c    | 42 ++--------
 .../net/ethernet/mellanox/mlx5/core/en_tx.c   | 75 +++---------------
 drivers/net/ethernet/microsoft/mana/mana_en.c |  3 -
 include/linux/ipv6.h                          | 21 ++++-
 include/net/ipv6.h                            | 79 -------------------
 include/net/netfilter/nf_tables_ipv6.h        |  4 +-
 net/bridge/br_netfilter_ipv6.c                |  2 +-
 net/bridge/netfilter/nf_conntrack_bridge.c    |  4 +-
 net/core/dev.c                                |  6 +-
 net/core/gro.c                                |  2 -
 net/ipv6/ip6_input.c                          |  2 +-
 net/ipv6/ip6_offload.c                        | 36 +--------
 net/ipv6/ip6_output.c                         | 20 +----
 net/ipv6/output_core.c                        |  7 +-
 net/netfilter/ipvs/ip_vs_xmit.c               |  2 +-
 net/netfilter/nf_conntrack_ovs.c              |  2 +-
 net/netfilter/nf_log_syslog.c                 |  2 +-
 net/sched/sch_cake.c                          |  2 +-
 22 files changed, 59 insertions(+), 282 deletions(-)
Signature · 1 line
2.52.0