From 669b56f4ea6873d4c87109fe31d98c3861d41150 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Wed, 10 Aug 2016 18:12:52 +0200 Subject: 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. --- src/ipcpd/shim-eth-llc/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ipcpd/shim-eth-llc') 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; } -- cgit v1.2.3