benet: Set skb->csum_level for encapsulated checksum
Set skb->csum_level instead of skb->encapsulation when indicating CHECKSUM_UNNECESSARY for an encapsulated checksum. Signed-off-by: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
					parent
					
						
							
								202863fe4c
							
						
					
				
			
			
				commit
				
					
						b6c0e89dd3
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1683,7 +1683,7 @@ static void be_rx_compl_process(struct be_rx_obj *rxo, struct napi_struct *napi,
 | 
			
		|||
	if (netdev->features & NETIF_F_RXHASH)
 | 
			
		||||
		skb_set_hash(skb, rxcp->rss_hash, PKT_HASH_TYPE_L3);
 | 
			
		||||
 | 
			
		||||
	skb->encapsulation = rxcp->tunneled;
 | 
			
		||||
	skb->csum_level = rxcp->tunneled;
 | 
			
		||||
	skb_mark_napi_id(skb, napi);
 | 
			
		||||
 | 
			
		||||
	if (rxcp->vlanf)
 | 
			
		||||
| 
						 | 
				
			
			@ -1741,7 +1741,7 @@ static void be_rx_compl_process_gro(struct be_rx_obj *rxo,
 | 
			
		|||
	if (adapter->netdev->features & NETIF_F_RXHASH)
 | 
			
		||||
		skb_set_hash(skb, rxcp->rss_hash, PKT_HASH_TYPE_L3);
 | 
			
		||||
 | 
			
		||||
	skb->encapsulation = rxcp->tunneled;
 | 
			
		||||
	skb->csum_level = rxcp->tunneled;
 | 
			
		||||
	skb_mark_napi_id(skb, napi);
 | 
			
		||||
 | 
			
		||||
	if (rxcp->vlanf)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue