[PATCH net-next v3 0/8] Add HW GRO handling in rmnet
From: Subash Abhinov Kasiviswanathan
Date: Fri Oct 09 2026 - 04:45:11 EST
This patch series adds downlink packet coalescing support to the rmnet driver.
Hardware can coalesce TCP and UDP packets into a single MAPv5 frame.
A frame can contain up to 48 packets grouped into up to six NLOs.
Packets within one NLO have the same length, while different NLOs may have
different lengths. Since an skb supports only one GSO size, the driver
reconstructs separate skbs for each NLO or packet run.
The coalescing header is a fixed 28-byte structure containing all six NLO
slots. The checksum error bitmap is a single 48-bit, frame-wide stream
consumed least significant bit first. This allows the driver to identify
checksum errors across NLO boundaries and for NLOs containing more than
eight packets.
The driver drops coalesced segments reported with bad transport checksums.
IPv4 UDP packets with a zero checksum remain valid because that checksum is
optional. Multi-packet coalesced frames require RX checksum offload and
hardware GRO support. Single-packet frames are delivered as normal non-GSO
skbs when those features are disabled.
v2->v3:
- Fix build warnings in the patch "net: qualcomm: rmnet: Add DL coalescing statistics"
- No changes to the other patches
v2:
https://lore.kernel.org/all/20261008005543.2630828-1-subash.a.kasiviswanathan@xxxxxxxxxxxxxxxx/
v1:
https://lore.kernel.org/all/20260930051345.857443-1-subash.a.kasiviswanathan@xxxxxxxxxxxxxxxx/
Assisted-by: LLM
Subash Abhinov Kasiviswanathan (8):
net: qualcomm: rmnet: Update MTU handling during format changes
uapi: if_link: Add RMNET_FLAGS_INGRESS_COALESCE
net: qualcomm: rmnet: Process MAPv5 frames as a list
net: qualcomm: rmnet: Restrict supported MAP checksum configurations
net: qualcomm: rmnet: Add DL packet coalescing support
net: qualcomm: rmnet: Work around coalescing hardware quirks
net: qualcomm: rmnet: Add DL coalescing statistics
docs: networking: Add documentation for the coalescing support in
rmnet
.../cellular/qualcomm/rmnet.rst | 153 ++-
.../ethernet/qualcomm/rmnet/rmnet_config.c | 92 +-
.../ethernet/qualcomm/rmnet/rmnet_config.h | 104 +-
.../ethernet/qualcomm/rmnet/rmnet_handlers.c | 25 +-
.../net/ethernet/qualcomm/rmnet/rmnet_map.h | 20 +-
.../ethernet/qualcomm/rmnet/rmnet_map_data.c | 983 +++++++++++++++++-
.../net/ethernet/qualcomm/rmnet/rmnet_vnd.c | 199 +++-
.../net/ethernet/qualcomm/rmnet/rmnet_vnd.h | 4 +-
include/linux/if_rmnet.h | 31 +
include/uapi/linux/if_link.h | 1 +
10 files changed, 1486 insertions(+), 126 deletions(-)
--
2.34.1