mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	openvswitch: use skb_ip_totlen in conntrack
IPv4 GSO packets may get processed in ovs_skb_network_trim(), and we need to use skb_ip_totlen() to get iph totlen. Signed-off-by: Xin Long <lucien.xin@gmail.com> Reviewed-by: Aaron Conole <aconole@redhat.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
		
							parent
							
								
									46abd17302
								
							
						
					
					
						commit
						ec84c955a0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1103,7 +1103,7 @@ static int ovs_skb_network_trim(struct sk_buff *skb) | ||||||
| 
 | 
 | ||||||
| 	switch (skb->protocol) { | 	switch (skb->protocol) { | ||||||
| 	case htons(ETH_P_IP): | 	case htons(ETH_P_IP): | ||||||
| 		len = ntohs(ip_hdr(skb)->tot_len); | 		len = skb_ip_totlen(skb); | ||||||
| 		break; | 		break; | ||||||
| 	case htons(ETH_P_IPV6): | 	case htons(ETH_P_IPV6): | ||||||
| 		len = sizeof(struct ipv6hdr) | 		len = sizeof(struct ipv6hdr) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Xin Long
						Xin Long