From c9eea21709f95b0f8f2efd0ed44a350f5c8e41aa Mon Sep 17 00:00:00 2001 From: Subash Abhinov Kasiviswanathan Date: Thu, 20 Feb 2020 17:00:03 -0700 Subject: [PATCH] core: Do not zero out transport checksum Hardware does not use the value populated in the transport checksum field for checksum computation in MAPv5 format if checksum required bit is set. The partial checksum can be left as is in these cases. Explicitly marking the field as 0 could potentially cause incorrect verdicts in hardware in translation scenarios for UDPv4. CRs-Fixed: 2626450 Change-Id: I8d9e38e6af0df344ceebd630a895b1d7f467b1db Signed-off-by: Subash Abhinov Kasiviswanathan --- core/rmnet_map_data.c | 1 - 1 file changed, 1 deletion(-) diff --git a/core/rmnet_map_data.c b/core/rmnet_map_data.c index 34e815e4f103..d7da68240d47 100644 --- a/core/rmnet_map_data.c +++ b/core/rmnet_map_data.c @@ -543,7 +543,6 @@ void rmnet_map_v5_checksum_uplink_packet(struct sk_buff *skb, check = rmnet_map_get_csum_field(proto, trans); if (check) { - *check = 0; skb->ip_summed = CHECKSUM_NONE; /* Ask for checksum offloading */ ul_header->csum_valid_required = 1;