Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c3e9b32 authored by Sean Tranchetti's avatar Sean Tranchetti Committed by Gerrit - the friendly Code Review server
Browse files

net: qualcomm: rmnet: Set skb->protocol before DL checksum



rmnet_map_checksum_downlink_packet() requires the skb->protocol field
to be set properly to perform downlink checksum validation.

Ensure this field is set before invoking this API.

Change-Id: If61b930e4b28dbced44ded343bf73b4d25d2df13
Signed-off-by: default avatarSean Tranchetti <stranche@codeaurora.org>
parent 8b2893b8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -247,6 +247,8 @@ __rmnet_map_ingress_handler(struct sk_buff *skb,
		/* We only have the main QMAP header to worry about */
		pskb_pull(skb, sizeof(*qmap));

		rmnet_set_skb_proto(skb);

		if (port->data_format & RMNET_FLAGS_INGRESS_MAP_CKSUMV4) {
			if (!rmnet_map_checksum_downlink_packet(skb, len + pad))
				skb->ip_summed = CHECKSUM_UNNECESSARY;