moby--moby/libnetwork/drivers/bridge
Madhu Venugopal 6901ea51dc Prefer Netlink calls over ioctl
As seen in https://github.com/docker/docker/issues/14738 there is
general instability in the later kernels under race conditions when ioctl
calls are used in parallel with netlink calls for various operations.
(We are yet to narrow down to the exact root-cause on the kernel).

For those older kernels which doesnt support some of the netlink APIs,
we can fallback to using ioctl calls. Hence bringing back the original
code that used netlink (https://github.com/docker/libnetwork/pull/349).

Also, there was an existing bug in bridge creation using netlink which
was setting bridge mac during bridge creation. That operation is not
supported in the netlink library (and doesnt throw an error either).
Included a fix for that condition by setting the bridge mac after
creating the bridge.

Signed-off-by: Madhu Venugopal <madhu@docker.com>
2015-07-30 09:10:22 -07:00
..
bridge.go Prefer Netlink calls over ioctl 2015-07-30 09:10:22 -07:00
bridge_test.go Misc fixes to ipallocator & bridge driver about FixedCIDR 2015-07-27 18:12:33 -07:00
errors.go Provide interface to categorize errors 2015-05-20 22:29:29 -07:00
interface.go Support network options in rest api 2015-05-23 20:12:29 -07:00
interface_test.go Support network options in rest api 2015-05-23 20:12:29 -07:00
link.go Fix ICC on Firewalld enabled fedora systems, add in missing firewalld functionality to re-apply configuration when reloaded 2015-07-24 13:20:48 -04:00
link_test.go Move network types to types package 2015-05-20 20:28:46 +00:00
netlink_deprecated_linux.go Remove dependency on libcontainer 2015-07-16 13:26:26 -07:00
netlink_deprecated_linux_armppc64.go Remove dependency on libcontainer 2015-07-16 13:26:26 -07:00
netlink_deprecated_linux_notarm.go Remove dependency on libcontainer 2015-07-16 13:26:26 -07:00
netlink_deprecated_unsupported.go Remove dependency on libcontainer 2015-07-16 13:26:26 -07:00
network_test.go Bridge driver to support multiple networks 2015-05-24 07:59:34 -07:00
port_mapping.go Refactor sandbox code to use interfaces 2015-06-08 10:17:56 -07:00
port_mapping_test.go One port mapper per bridge network 2015-06-01 13:14:29 -07:00
resolvconf.go Move bridge to drivers/ 2015-02-24 11:29:06 -08:00
resolvconf_test.go Test coverage on bridge 2015-02-24 18:41:17 -08:00
setup.go Support network options in rest api 2015-05-23 20:12:29 -07:00
setup_bridgenetfiltering.go Refactor of docker PR #11405 2015-07-08 10:15:08 -04:00
setup_bridgenetfiltering_test.go Refactor of docker PR #11405 2015-07-08 10:15:08 -04:00
setup_device.go Prefer Netlink calls over ioctl 2015-07-30 09:10:22 -07:00
setup_device_test.go Support network options in rest api 2015-05-23 20:12:29 -07:00
setup_firewalld.go Fix ICC on Firewalld enabled fedora systems, add in missing firewalld functionality to re-apply configuration when reloaded 2015-07-24 13:20:48 -04:00
setup_fixedcidrv4.go Support network options in rest api 2015-05-23 20:12:29 -07:00
setup_fixedcidrv4_test.go Support network options in rest api 2015-05-23 20:12:29 -07:00
setup_fixedcidrv6.go Fixes https://github.com/docker/docker/issues/13426 2015-06-02 15:50:38 -07:00
setup_fixedcidrv6_test.go Fixed a bug in DeleteEndpoint to properly release v6 ip 2015-07-09 20:46:36 -07:00
setup_ip_forwarding.go Support network options in rest api 2015-05-23 20:12:29 -07:00
setup_ip_forwarding_test.go Support network options in rest api 2015-05-23 20:12:29 -07:00
setup_ip_tables.go Fix ICC on Firewalld enabled fedora systems, add in missing firewalld functionality to re-apply configuration when reloaded 2015-07-24 13:20:48 -04:00
setup_ip_tables_test.go One port mapper per bridge network 2015-06-01 13:14:29 -07:00
setup_ipv4.go Misc fixes to ipallocator & bridge driver about FixedCIDR 2015-07-27 18:12:33 -07:00
setup_ipv4_test.go Misc fixes to ipallocator & bridge driver about FixedCIDR 2015-07-27 18:12:33 -07:00
setup_ipv6.go Fixes https://github.com/docker/docker/issues/13426 2015-06-02 15:50:38 -07:00
setup_ipv6_test.go Support network options in rest api 2015-05-23 20:12:29 -07:00
setup_verify.go Support network options in rest api 2015-05-23 20:12:29 -07:00
setup_verify_test.go Support network options in rest api 2015-05-23 20:12:29 -07:00