mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
netdev-linux: Fix blocking while sending packets.
The AF_PACKET socket needs to be in nonblocking mode or trying to send a packet can take a long time.
This commit is contained in:
@@ -452,6 +452,7 @@ netdev_linux_init(void)
|
||||
VLOG_ERR("failed to create packet socket: %s",
|
||||
strerror(status));
|
||||
}
|
||||
set_nonblocking(af_packet_sock);
|
||||
}
|
||||
|
||||
/* Create rtnetlink socket. */
|
||||
|
Reference in New Issue
Block a user