The point of this series is to make the netdev layer and its implementations thread-safe, but along the way I found lots of bugs to fix and minor improvements.
Ben Pfaff (27): dpif-linux: Fix theoretical memory leak on error path. netdev-bsd: Fix memory leak on error path. netdev-bsd: Fix typo in label name. netdev-bsd: Fix fd leak on error path. netdev-bsd: Correctly handle IPv4 netmasks. netdev-linux: Fix fd leak on error path. netdev-linux: Initialize change_seq for tap devices too. netdev-dummy: Fix memory leak on error path in netdev_rx_dummy_recv(). netdev-linux, netdev-bsd: Don't assume 'struct netdev' has offset 0. netdev: Minor formatting improvements. netdev-vport: Use ovs_mutex rather than a raw pthread_mutex_t. netdev-linux: Remove unneeded struct forward declarations from header. netdev-linux: Remove pointless layers of indirection for tap devices. netdev-linux: Remove unused struct netdev_linux member. netdev-linux: Remove useless member 'peer', which was always zero. netdev-linux: Move variable declaration inward in netdev_linux_cache_cb(). netdev-bsd: Use xmemdup0() to simplify netdev_bsd_get_next_hop(). netdev-provider: Remove unused function netdev_assert_class(). netdev: Make netdev_get_devices() take a reference to each netdev. netdev: Make netdev_from_name() take a reference to its returned netdev. netdev-dummy: Use netdev_get_devices() instead of a local shash. netdev-linux, netdev-bsd: Make access to AF_INET socket thread-safe. netdev-bsd: Make use of AF_LINK socket thread-safe in NetBSD. netdev: Adopt four-step alloc/construct/destruct/dealloc lifecycle. netdev-vport: Make netdev_vport_patch_peer() return a malloc()'d string. netdev-linux: Use dedicated netlink notification socket. netdev: Make netdev access thread-safe. lib/dpif-linux.c | 18 +- lib/netdev-bsd.c | 516 ++++++++++++++------------- lib/netdev-dummy.c | 307 +++++++++++----- lib/netdev-linux.c | 927 ++++++++++++++++++++++++++---------------------- lib/netdev-linux.h | 5 +- lib/netdev-provider.h | 190 ++++++---- lib/netdev-vport.c | 200 +++++++---- lib/netdev-vport.h | 2 +- lib/netdev.c | 376 ++++++++++++-------- lib/netdev.h | 18 +- lib/socket-util.c | 40 +++ lib/socket-util.h | 8 +- lib/vlandev.c | 9 +- ofproto/ofproto-dpif.c | 8 +- 14 files changed, 1566 insertions(+), 1058 deletions(-) -- 1.7.10.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev