forked from mirrors/linux
		
	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: Tonghao Zhang <xiangxia.m.yue@gmail.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
							parent
							
								
									ba6ba68f59
								
							
						
					
					
						commit
						939912216f
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -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; | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Tonghao Zhang
						Tonghao Zhang