From: Michal Sojka Date: Sun, 28 Nov 2010 21:02:53 +0000 (+0100) Subject: Temporarily disable rx overflow X-Git-Tag: fix-allnoconfig~323^2 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/12c9e87e0b64091e2d35f5abcb5007ecb8a0d115 Temporarily disable rx overflow It is not supported by the kernel I do the tests on. --- diff --git a/latester/latester.c b/latester/latester.c index 774e9d9..6b5c7ed 100644 --- a/latester/latester.c +++ b/latester/latester.c @@ -302,10 +302,10 @@ void *measure_thread(void *arg) ×tamp_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;