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

Commit 93991221 authored by Tonghao Zhang's avatar Tonghao Zhang Committed by David S. Miller
Browse files

net: skb_needs_check() removes CHECKSUM_UNNECESSARY check for tx.



Because we remove the UFO support, we will also remove the
CHECKSUM_UNNECESSARY check in skb_needs_check().

Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: default avatarTonghao Zhang <xiangxia.m.yue@gmail.com>
Acked-by: default avatarWillem de Bruijn <willemb@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ba6ba68f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2731,8 +2731,7 @@ EXPORT_SYMBOL(skb_mac_gso_segment);
static inline bool skb_needs_check(struct sk_buff *skb, bool tx_path)
{
	if (tx_path)
		return skb->ip_summed != CHECKSUM_PARTIAL &&
		       skb->ip_summed != CHECKSUM_UNNECESSARY;
		return skb->ip_summed != CHECKSUM_PARTIAL;

	return skb->ip_summed == CHECKSUM_NONE;
}