From 99d946ccff4e757395f5607f06645c79c2c951df Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 3 Nov 2019 15:00:15 +0100 Subject: executor: fix setup of vxcan Adding vxcan1 also adds vxcan0. Setup and use both. --- executor/common_linux.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index 0b7e15a63..5dbd5a56c 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -587,7 +587,7 @@ static void initialize_netdevices(void) {"nlmon", "nlmon0"}, {"caif", "caif0"}, {"batadv", "batadv0"}, - // Note: adding device vxcan0 fails. + // Note: this adds vxcan0/vxcan1 pair, similar to veth (creating vxcan0 would fail). {"vxcan", "vxcan1"}, // Note: netdevsim devices can't have the same name even in different namespaces. {"netdevsim", netdevsim}, @@ -629,6 +629,7 @@ static void initialize_netdevices(void) {"hsr0", 0}, {"dummy0", ETH_ALEN}, {"nlmon0", 0}, + {"vxcan0", 0, true}, {"vxcan1", 0, true}, {"caif0", ETH_ALEN}, // TODO: up'ing caif fails with ENODEV {"batadv0", ETH_ALEN}, -- cgit mrf-deployment