2
0
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:
Ben Pfaff
2011-04-08 14:23:13 -07:00
parent 1de0e8ae5c
commit b981622b84

View File

@@ -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. */