From 5669df8fd60210aa11bd282e483cb587e17bd752 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 25 Nov 2020 18:33:35 +0100 Subject: fixup! veth: add support to configure veth interfaces It's not clear why these check for ifindex. Yes, NMDeviceEthernet does that too (why?), but NMDeviceBond does not. In general, for veth it only depends on the driver whether carrier detect is supported (and it always is). --- src/devices/nm-device-veth.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/devices/nm-device-veth.c b/src/devices/nm-device-veth.c index 3a5cb033b0..54400c3c49 100644 --- a/src/devices/nm-device-veth.c +++ b/src/devices/nm-device-veth.c @@ -118,12 +118,7 @@ create_and_realize(NMDevice * device, static NMDeviceCapabilities get_generic_capabilities(NMDevice *device) { - int ifindex = nm_device_get_ifindex(device); - - if (ifindex > 0) - return NM_DEVICE_CAP_CARRIER_DETECT | NM_DEVICE_CAP_IS_SOFTWARE; - - return NM_DEVICE_CAP_IS_SOFTWARE; + return NM_DEVICE_CAP_CARRIER_DETECT | NM_DEVICE_CAP_IS_SOFTWARE; } static gboolean -- cgit v1.2.1