netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: skb_needs_check() removes CHECKSUM_NONE check for tx.
@ 2017-08-09 12:04 Tonghao Zhang
  2017-08-09 12:04 ` [PATCH net-next] skbuff: Add BUG_ON in skb_init Tonghao Zhang
  2017-08-09 18:30 ` [PATCH net-next] net: skb_needs_check() removes CHECKSUM_NONE check for tx Willem de Bruijn
  0 siblings, 2 replies; 9+ messages in thread
From: Tonghao Zhang @ 2017-08-09 12:04 UTC (permalink / raw)
  To: netdev; +Cc: Tonghao Zhang, Eric Dumazet, Willem de Bruijn

This patch reverts the commit 6e7bc478c9a0
("net: skb_needs_check() accepts CHECKSUM_NONE for tx"),
because we removed the UFO support.

Cc: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
---
 net/core/dev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index 1d75499add72..1024d3741d12 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -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_NONE;
+		return skb->ip_summed != CHECKSUM_PARTIAL;
 
 	return skb->ip_summed == CHECKSUM_NONE;
 }
-- 
2.13.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-08-11  2:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-09 12:04 [PATCH net-next] net: skb_needs_check() removes CHECKSUM_NONE check for tx Tonghao Zhang
2017-08-09 12:04 ` [PATCH net-next] skbuff: Add BUG_ON in skb_init Tonghao Zhang
2017-08-10  5:49   ` David Miller
2017-08-10  6:10     ` Tonghao Zhang
2017-08-10  6:41       ` Yuan, Linyu (NSB - CN/Shanghai)
2017-08-09 18:30 ` [PATCH net-next] net: skb_needs_check() removes CHECKSUM_NONE check for tx Willem de Bruijn
2017-08-10  1:02   ` Tonghao Zhang
2017-08-10 17:03     ` Willem de Bruijn
2017-08-11  2:29       ` Tonghao Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).