summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-08-10 18:12:52 +0200
committerSander Vrijders <[email protected]>2016-08-10 18:20:23 +0200
commit669b56f4ea6873d4c87109fe31d98c3861d41150 (patch)
tree8e02b8352095623a8b17662999d15472a85f5b61 /src
parent533df37ac3a643017dba96283791d36934e15464 (diff)
downloadouroboros-669b56f4ea6873d4c87109fe31d98c3861d41150.tar.gz
ouroboros-669b56f4ea6873d4c87109fe31d98c3861d41150.zip
ipcpd: Add MSG_DONTWAIT flag to shim-eth-llc
This adds the MSG_DONTWAIT flag to the send function of the shim-eth-llc, when using PF_PACKET. Previously the send would return only after the frame was sent, resulting in poor performance.
Diffstat (limited to 'src')
-rw-r--r--src/ipcpd/shim-eth-llc/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/shim-eth-llc/main.c b/src/ipcpd/shim-eth-llc/main.c
index b8689ac7..c719f5c5 100644
--- a/src/ipcpd/shim-eth-llc/main.c
+++ b/src/ipcpd/shim-eth-llc/main.c
@@ -379,7 +379,7 @@ static int eth_llc_ipcp_send_frame(uint8_t dst_addr[MAC_SIZE],
header->tp_len = frame_len;
header->tp_status = TP_STATUS_SEND_REQUEST;
- if (send(fd, NULL, 0, 0) < 0) {
+ if (send(fd, NULL, 0, MSG_DONTWAIT) < 0) {
LOG_ERR("Failed to write frame into TX_RING.");
return -1;
}