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

Commit 6628ed00 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: rmnet_data: Optimize the UL aggregation skip logic"

parents 2bbbdceb b7500cc9
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -753,18 +753,18 @@ int rmnet_ul_aggregation_skip(struct sk_buff *skb, int offset)

		if (ip4h->protocol == IPPROTO_ICMP)
			is_icmp = 1;
	} else {
	} else if ((skb->data[offset]) >> 4 == 0x06) {
		struct ipv6hdr *ip6h = (struct ipv6hdr *)(packet_start);

		if (ip6h->nexthdr == NEXTHDR_FRAGMENT) {
		if (ip6h->nexthdr == IPPROTO_ICMPV6) {
			is_icmp = 1;
		} else if (ip6h->nexthdr == NEXTHDR_FRAGMENT) {
			struct frag_hdr *frag;

			frag = (struct frag_hdr *)(packet_start
						   + sizeof(struct ipv6hdr));
			if (frag->nexthdr == IPPROTO_ICMPV6)
				is_icmp = 1;
		} else if (ip6h->nexthdr == IPPROTO_ICMPV6) {
			is_icmp = 1;
		}
	}