Changeset b135888
- Timestamp:
- 07/02/18 18:23:32 (3 years ago)
- Branches:
- cachetimestamps, develop, master, ringdecrementfix, ringperformance
- Children:
- 5864acd
- Parents:
- 97d0351
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.in
r47d64ce rb135888 122 122 123 123 # Fail if any of these functions are missing 124 AC_CHECK_DECLS([s ocket, strdup, strlcpy, strcasecmp, strncasecmp, snprintf, vsnprintf, recvmmsg, strndup])125 124 AC_CHECK_DECLS([strdup, strlcpy, strcasecmp, strncasecmp, snprintf, vsnprintf, strndup]) 125 AC_CHECK_DECLS([socket, recvmmsg], [], [], [[#include <sys/socket.h>]]) 126 126 AC_CHECK_SIZEOF([long int]) 127 127 -
lib/format_ndag.c
r32ee9b2 rb135888 94 94 int bufwaiting; 95 95 96 #if HAVE_ RECVMMSG96 #if HAVE_DECL_RECVMMSG 97 97 struct mmsghdr mmsgbufs[RECV_BATCH_SIZE]; 98 98 #else … … 532 532 } 533 533 534 #if HAVE_ RECVMMSG534 #if HAVE_DECL_RECVMMSG 535 535 for (j = 0; j < RECV_BATCH_SIZE; j++) { 536 536 if (src.mmsgbufs[j].msg_hdr.msg_iov) { … … 749 749 } 750 750 751 #if HAVE_ RECVMMSG751 #if HAVE_DECL_RECVMMSG 752 752 for (i = 0; i < RECV_BATCH_SIZE; i++) { 753 753 ssock->mmsgbufs[i].msg_hdr.msg_iov = (struct iovec *) … … 834 834 int i = 1; 835 835 836 #if HAVE_ RECVMMSG836 #if HAVE_DECL_RECVMMSG 837 837 for (i = 0; i < required; i++) { 838 838 if (i >= RECV_BATCH_SIZE) { … … 937 937 int toret = 0; 938 938 939 #if HAVE_ RECVMMSG939 #if HAVE_DECL_RECVMMSG 940 940 int i; 941 941 #endif … … 943 943 avail = init_receivers(ssock, ssock->bufavail); 944 944 945 #if HAVE_ RECVMMSG945 #if HAVE_DECL_RECVMMSG 946 946 ret = recvmmsg(ssock->sock, ssock->mmsgbufs, avail, 947 947 MSG_DONTWAIT, NULL); … … 985 985 ssock->startidle = 0; 986 986 987 #if HAVE_ RECVMMSG987 #if HAVE_DECL_RECVMMSG 988 988 for (i = 0; i < ret; i++) { 989 989 ndagstat = check_ndag_received(ssock, ssock->nextwriteind, … … 1034 1034 } 1035 1035 1036 #if HAVE_ RECVMMSG1036 #if HAVE_DECL_RECVMMSG 1037 1037 /* Plenty of full buffers, just use the packets in those */ 1038 1038 if (rt->sources[i].bufavail < RECV_BATCH_SIZE / 2) {
Note: See TracChangeset
for help on using the changeset viewer.