summaryrefslogtreecommitdiff
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorSanjana Srinidhi <sanjanasrinidhi1810@gmail.com>2021-03-13 14:06:49 +0530
committerDavid S. Miller <davem@davemloft.net>2021-03-13 18:06:48 -0800
commit6fadbdd6dd3260120bde3f2e471125d4fbce168c (patch)
treef719d1f7c106f49329436bf69dd1cf9f0cb8f360 /drivers/net/vxlan.c
parent65c7bc1b7a66f2cb0bafcefd9e15e1de44ac7ea7 (diff)
downloadlwn-6fadbdd6dd3260120bde3f2e471125d4fbce168c.tar.gz
lwn-6fadbdd6dd3260120bde3f2e471125d4fbce168c.zip
drivers: net: vxlan.c: Fix declaration issue
Added a blank line after structure declaration. This is done to maintain code uniformity. Signed-off-by: Sanjana Srinidhi <sanjanasrinidhi1810@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r--drivers/net/vxlan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 666dd201c3d5..7665817f3cb6 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -3703,6 +3703,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");