]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Temporarily disable rx overflow
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 28 Nov 2010 21:02:53 +0000 (22:02 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 28 Nov 2010 21:02:53 +0000 (22:02 +0100)
It is not supported by the kernel I do the tests on.

latester/latester.c

index 774e9d9a182b59055341a34cd976d031b405e42d..6b5c7ed72006717b717148a1e062b7395d54b0c5 100644 (file)
@@ -302,10 +302,10 @@ void *measure_thread(void *arg)
                               &timestamp_on, sizeof(timestamp_on)) < 0)
                        error(1, errno, "setsockopt SO_TIMESTAMP");
 
                               &timestamp_on, sizeof(timestamp_on)) < 0)
                        error(1, errno, "setsockopt SO_TIMESTAMP");
 
-               const int dropmonitor_on = 1;
-               if (setsockopt(s, SOL_SOCKET, SO_RXQ_OVFL,
-                              &dropmonitor_on, sizeof(dropmonitor_on)) < 0)
-                       error(1, errno, "setsockopt SO_RXQ_OVFL not supported by your Linux Kernel");
+//             const int dropmonitor_on = 1;
+//             if (setsockopt(s, SOL_SOCKET, SO_RXQ_OVFL,
+//                            &dropmonitor_on, sizeof(dropmonitor_on)) < 0)
+//                     error(1, errno, "setsockopt SO_RXQ_OVFL not supported by your Linux Kernel");
 
                pfd[i].fd = s;
                pfd[i].events = (i == 0) ? POLLERR : POLLIN;
 
                pfd[i].fd = s;
                pfd[i].events = (i == 0) ? POLLERR : POLLIN;