mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	vti4: Don't count header length twice.
We currently count the size of LL_MAX_HEADER and struct iphdr
twice for vti4 devices, this leads to a wrong device mtu.
The size of LL_MAX_HEADER and struct iphdr is already counted in
ip_tunnel_bind_dev(), so don't do it again in vti_tunnel_init().
Fixes: b9959fd3 ("vti: switch to new ip tunnel code")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
			
			
This commit is contained in:
		
							parent
							
								
									5596732fa8
								
							
						
					
					
						commit
						a32452366b
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
					@ -349,7 +349,6 @@ static int vti_tunnel_init(struct net_device *dev)
 | 
				
			||||||
	memcpy(dev->broadcast, &iph->daddr, 4);
 | 
						memcpy(dev->broadcast, &iph->daddr, 4);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	dev->type		= ARPHRD_TUNNEL;
 | 
						dev->type		= ARPHRD_TUNNEL;
 | 
				
			||||||
	dev->hard_header_len	= LL_MAX_HEADER + sizeof(struct iphdr);
 | 
					 | 
				
			||||||
	dev->mtu		= ETH_DATA_LEN;
 | 
						dev->mtu		= ETH_DATA_LEN;
 | 
				
			||||||
	dev->flags		= IFF_NOARP;
 | 
						dev->flags		= IFF_NOARP;
 | 
				
			||||||
	dev->iflink		= 0;
 | 
						dev->iflink		= 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue