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

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

Merge "tun: Set CHECKSUM_UNNECESSARY if userspace passes this indication"

parents 2e672975 51b325be
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1115,6 +1115,10 @@ static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile,
	} else if (tun->flags & TUN_NOCHECKSUM)
		skb->ip_summed = CHECKSUM_UNNECESSARY;

	if (!(tun->flags & TUN_NO_PI))
		if (pi.flags & htons(CHECKSUM_UNNECESSARY))
			skb->ip_summed = CHECKSUM_UNNECESSARY;

	switch (tun->flags & TUN_TYPE_MASK) {
	case TUN_TUN_DEV:
		if (tun->flags & TUN_NO_PI) {