mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	netfilter: only do skb_checksum_help on CHECKSUM_PARTIAL in nfnetlink_queue
As we will set ip_summed to CHECKSUM_NONE when necessary in nfqnl_mangle, there is no need to zap CHECKSUM_COMPLETE in nfqnl_build_packet_message. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
		
							parent
							
								
									5dd59cc991
								
							
						
					
					
						commit
						e9f13cab49
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -245,8 +245,7 @@ nfqnl_build_packet_message(struct nfqnl_instance *queue, | |||
| 		break; | ||||
| 
 | ||||
| 	case NFQNL_COPY_PACKET: | ||||
| 		if ((entskb->ip_summed == CHECKSUM_PARTIAL || | ||||
| 		     entskb->ip_summed == CHECKSUM_COMPLETE) && | ||||
| 		if (entskb->ip_summed == CHECKSUM_PARTIAL && | ||||
| 		    skb_checksum_help(entskb)) { | ||||
| 			spin_unlock_bh(&queue->lock); | ||||
| 			return NULL; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Herbert Xu
						Herbert Xu