[PATCH net v5 1/5] net: qualcomm: rmnet: Account for V5 checksum header in headroom
From: Subash Abhinov Kasiviswanathan
Date: Tue Nov 17 2026 - 01:09:42 EST
rmnet_vnd_headroom() only reserves space for the V4 egress checksum
header. A device using V5 checksum offload therefore gets an MTU which
is too large for the real device once the V5 header is added on egress.
Include the V5 checksum header in the headroom calculation when the V5
egress checksum flag is set.
Fixes: b6e5d27e32ef ("net: ethernet: rmnet: Add support for MAPv5 egress packets")
Co-developed-by: Sean Tranchetti <sean.tranchetti@xxxxxxxxxxxxxxxx>
Signed-off-by: Sean Tranchetti <sean.tranchetti@xxxxxxxxxxxxxxxx>
Signed-off-by: Subash Abhinov Kasiviswanathan <subash.a.kasiviswanathan@xxxxxxxxxxxxxxxx>
---
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
index 5f921cddf82b..fd10aa418be7 100644
--- a/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
+++ b/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
@@ -74,6 +74,8 @@ static int rmnet_vnd_headroom(struct rmnet_port *port)
if (port->data_format & RMNET_FLAGS_EGRESS_MAP_CKSUMV4)
headroom += sizeof(struct rmnet_map_ul_csum_header);
+ else if (port->data_format & RMNET_FLAGS_EGRESS_MAP_CKSUMV5)
+ headroom += sizeof(struct rmnet_map_v5_csum_header);
return headroom;
}
--
2.34.1