mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
netdev-linux, netdev-bsd: Make access to AF_INET socket thread-safe.
The only uses of 'af_inet_sock', in both drivers, were ioctls, so it seemed like a good abstraction to write a function that just does such an ioctl, and to factor out shared code into socket-util. Signed-off-by: Ben Pfaff <blp@nicira.com> CC: Ed Maste <emaste@freebsd.org>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011 Nicira, Inc.
|
||||
* Copyright (c) 2011, 2013 Nicira, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -27,6 +27,5 @@ struct netdev;
|
||||
|
||||
int netdev_linux_ethtool_set_flag(struct netdev *netdev, uint32_t flag,
|
||||
const char *flag_name, bool enable);
|
||||
int netdev_linux_get_af_inet_sock(void);
|
||||
|
||||
#endif /* netdev-linux.h */
|
||||
|
||||
Reference in New Issue
Block a user