From: Jiri Benc Date: Thu, 7 Apr 2016 12:36:27 +0000 (+0200) Subject: vxlan: 'external' implies 'nolearning' X-Git-Tag: v4.7.0~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44df45973a23fc32a3611a8571b18d5fad91d97e;p=thirdparty%2Fiproute2.git vxlan: 'external' implies 'nolearning' It doesn't make sense to use external control plane and fill internal FDB at the same time. It's even an illegal combination for VXLAN-GPE. Just switch off learning when 'external' is specified. Signed-off-by: Jiri Benc --- diff --git a/ip/iplink_vxlan.c b/ip/iplink_vxlan.c index e3bbea003..e9d64b451 100644 --- a/ip/iplink_vxlan.c +++ b/ip/iplink_vxlan.c @@ -234,6 +234,7 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv, remcsumrx = 0; } else if (!matches(*argv, "external")) { metadata = 1; + learning = 0; } else if (!matches(*argv, "noexternal")) { metadata = 0; } else if (!matches(*argv, "gbp")) {