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 <subashab@codeaurora.org>
This commit is contained in:
Subash Abhinov Kasiviswanathan 2020-02-20 17:00:03 -07:00
commit c9eea21709

View file

@ -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;