diff options
Diffstat (limited to 'drivers/net/vxlan.c')
| -rw-r--r-- | drivers/net/vxlan.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 53dbc67e8a34..02a14f1b938a 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -3494,6 +3494,7 @@ static struct socket *vxlan_create_sock(struct net *net, bool ipv6,  	if (err < 0)  		return ERR_PTR(err); +	udp_allow_gso(sock->sk);  	return sock;  } @@ -3713,6 +3714,7 @@ static int vxlan_config_validate(struct net *src_net, struct vxlan_config *conf,  #if IS_ENABLED(CONFIG_IPV6)  		if (use_ipv6) {  			struct inet6_dev *idev = __in6_dev_get(lowerdev); +  			if (idev && idev->cnf.disable_ipv6) {  				NL_SET_ERR_MSG(extack,  					       "IPv6 support disabled by administrator");  |