Laine Stump
b64d62c6b8
util: fallback to ioctl(SIOCBRDELBR) if netlink RTM_DELLINK fails
...
commit 09778e09 switched from using ioctl(SIOCBRDELBR) for bridge
device deletion to using a netlink RTM_DELLINK message, which is the
more modern way to delete a bridge (and also doesn't require the
bridge to be ~IFF_UP to succeed). However, although older kernels
(e.g. 2.6.32, in RHEL6/CentOS6) support deleting *some* link types
with RTM_NEWLINK, they don't support deleting bridges, and there is no
compile-time way to figure this out.
This patch moves the body of the SIOCBRDELBR version of
virNetDevBridgeDelete() into a static function, calls the new function
from the original, and also calls the new function from the
RTM_DELLINK version if the RTM_DELLINK message generates an EOPNOTSUPP
error. Since RTM_DELLINK is done from the subordinate function
virNetlinkDelLink, which is also called for other purposes (deleting a
macvtap interface), a function pointer called "fallback" has been
added to the arglist of virNetlinkDelLink() - if that arg != NULL, the
provided function will be called when (and only when) RTM_DELLINK
fails with EOPNOTSUPP.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1252780 (part 2)
(cherry picked from commit 97d26e470d5be2f1178cedfea212c5983afd7b30)
2015-09-21 20:18:03 -04:00
..
2014-03-25 14:58:40 +01:00
2014-10-29 09:55:09 -06:00
2014-07-16 06:48:53 -06:00
2014-03-18 14:29:22 +00:00
2014-11-07 09:16:37 +01:00
2014-03-10 14:26:04 +01:00
2014-10-29 09:55:09 -06:00
2014-10-29 09:55:09 -06:00
2014-11-14 17:13:35 +01:00
2014-03-25 14:58:40 +01:00
2015-07-08 11:01:33 +02:00
2015-06-03 09:42:07 +02:00
2015-04-16 18:35:41 +02:00
2015-03-25 15:42:52 +01:00
2015-07-22 07:12:56 +02:00
2015-07-22 07:12:56 +02:00
2015-03-18 09:53:24 +01:00
2015-04-08 09:45:48 +02:00
2015-04-22 17:56:53 +03:00
2015-03-05 18:57:06 -05:00
2014-03-19 10:47:58 +00:00
2015-01-12 08:59:55 -05:00
2014-12-15 10:34:18 +01:00
2014-03-12 16:01:30 -06:00
2014-03-10 16:39:18 +00:00
2015-01-26 09:14:04 +00:00
2015-01-26 09:14:04 +00:00
2014-11-20 08:48:19 -07:00
2015-06-09 13:56:00 -04:00
2014-04-25 15:44:09 +01:00
2014-03-11 11:01:52 +00:00
2015-07-10 11:47:13 +02:00
2015-07-10 11:47:13 +02:00
2014-10-29 09:55:09 -06:00
2015-05-27 16:59:18 +02:00
2014-03-10 14:26:04 +01:00
2015-09-02 18:57:15 -04:00
2015-09-02 18:57:15 -04:00
2015-05-22 10:15:05 -04:00
2014-12-22 16:57:21 -05:00
2014-04-25 15:44:09 +01:00
2015-07-10 11:47:13 +02:00
2015-07-10 11:47:13 +02:00
2014-12-01 11:07:31 -05:00
2014-09-22 17:11:56 +02:00
2015-09-21 20:18:02 -04:00
2014-03-19 10:05:31 +01:00
2015-03-25 13:37:41 +01:00
2014-09-24 15:29:22 +01:00
2014-10-22 13:09:49 +01:00
2014-05-05 14:30:01 -06:00
2014-11-14 15:15:16 +00:00
2014-04-25 15:44:09 +01:00
2014-12-10 06:58:37 -05:00
2014-03-25 08:26:39 +01:00
2015-06-25 09:11:15 +02:00
2015-06-22 10:38:21 -06:00
2013-12-24 17:36:47 +01:00
2013-12-24 17:36:47 +01:00
2014-04-07 06:14:45 -06:00
2015-04-02 16:05:32 +02:00
2014-02-04 08:52:27 -05:00
2014-11-14 17:13:35 +01:00
2015-02-06 10:22:07 +00:00
2015-02-06 10:22:07 +00:00
2014-10-28 14:14:25 -04:00
2014-10-28 14:14:25 -04:00
2015-09-21 20:17:59 -04:00
2015-07-21 07:08:35 -04:00
2015-04-17 10:49:03 +02:00
2015-04-17 10:49:03 +02:00
2015-09-21 20:18:03 -04:00
2014-12-08 14:39:12 -05:00
2015-09-21 20:18:03 -04:00
2014-12-10 15:09:01 -05:00
2015-03-17 12:56:37 -04:00
2015-03-17 12:56:37 -04:00
2015-03-13 22:43:08 -04:00
2013-10-14 13:05:34 -06:00
2015-03-17 13:10:17 -04:00
2015-01-15 11:07:13 +00:00
2015-04-15 16:43:28 +02:00
2013-10-14 13:05:34 -06:00
2013-10-14 13:05:34 -06:00
2015-03-17 13:09:05 -04:00
2015-03-17 12:56:37 -04:00
2015-09-21 20:18:03 -04:00
2015-09-21 20:18:03 -04:00
2014-04-14 18:19:36 +02:00
2015-06-10 17:27:16 +02:00
2014-12-16 11:15:27 +01:00
2015-05-11 08:28:53 +02:00
2015-05-11 08:28:53 +02:00
2015-07-01 12:15:16 -04:00
2015-01-14 18:01:06 +01:00
2015-06-09 13:56:00 -04:00
2014-11-03 16:43:23 +01:00
2014-11-19 08:20:39 -07:00
2014-09-24 15:29:22 +01:00
2015-03-13 15:31:33 +01:00
2014-09-11 15:40:14 -06:00
2015-01-15 11:07:13 +00:00
2015-09-21 20:18:00 -04:00
2015-06-16 12:38:03 +02:00
2015-04-14 13:24:51 -06:00
2015-06-22 16:03:33 -04:00
2015-06-22 16:03:33 -04:00
2014-07-14 05:44:20 -04:00
2014-07-11 10:36:02 +02:00
2014-11-14 17:13:35 +01:00
2015-09-21 20:17:58 -04:00
2015-06-02 12:40:07 -04:00
2014-09-17 11:28:48 -06:00
2014-09-17 11:28:48 -06:00
2014-11-14 17:13:35 +01:00
2014-06-20 09:14:46 +02:00
2015-09-21 19:21:20 -04:00
2015-09-21 19:21:20 -04:00
2015-04-24 13:40:41 +02:00
2015-04-15 18:41:20 +02:00
2015-06-18 10:10:26 +02:00
2015-06-18 10:10:26 +02:00
2015-07-22 07:12:56 +02:00
2015-07-22 07:12:56 +02:00
2015-04-16 15:39:22 +02:00
2015-03-25 10:00:53 +01:00
2015-03-25 10:00:53 +01:00
2015-03-25 10:00:53 +01:00
2015-05-21 14:35:02 +02:00
2015-03-25 10:00:53 +01:00
2014-10-28 14:44:18 -06:00
2014-07-25 12:06:07 +02:00
2014-03-25 14:58:40 +01:00
2015-07-02 06:30:27 -04:00
2015-06-18 16:46:09 +02:00
2014-10-15 09:25:33 +02:00
2014-07-03 10:41:15 +02:00
2014-03-04 12:24:13 +00:00
2015-06-08 09:32:24 +02:00
2015-06-03 09:42:08 +02:00
2014-03-20 17:16:18 +01:00
2014-01-02 22:17:11 -07:00
2015-01-15 14:02:50 +00:00
2015-01-15 14:02:50 +00:00