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

Commit 8be91631 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 14c7fd4f bb490853
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1838,6 +1838,10 @@ static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile,
		return -EINVAL;
	}

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

	switch (tun->flags & TUN_TYPE_MASK) {
	case IFF_TUN:
		if (tun->flags & IFF_NO_PI) {