]> xenbits.xensource.com Git - xen.git/commit
tools/hotplug/Linux: remove code duplication in vif-bridge
authorPaul Durrant <pdurrant@amazon.com>
Tue, 11 Aug 2020 08:01:58 +0000 (09:01 +0100)
committerWei Liu <wl@xen.org>
Thu, 27 Aug 2020 10:04:14 +0000 (10:04 +0000)
commitb51715f02bf916c9cd6740b1047ba4396d85bbb0
tree358dd4fc0414881a13febe8c86b1c0a97c4f2e7b
parentbb13d936d2500f303c8fbf9420da9ed340818294
tools/hotplug/Linux: remove code duplication in vif-bridge

The 'add' and 'online' cases do exactly the same thing so have 'add' simply
fall through to 'online'.

NOTE: This patch also adds in the missing 'remove' case, which falls though
      to 'offline'. (The former is passed for 'tap' devices, the latter for
      'vif' devices).

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Acked-by: Wei Liu <wl@xen.org>
tools/hotplug/Linux/vif-bridge