]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
ugw: Make PF_PACKET frames smaller
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 14 Jan 2014 10:29:19 +0000 (11:29 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 14 Jan 2014 10:29:19 +0000 (11:29 +0100)
To have space for more packets.

ugw/ugw.c

index b355ebc386d01b453af144fd17f5a563025a4f45..0aefe7e8a0b1d6b1a44635905c43f3779b2059e4 100644 (file)
--- a/ugw/ugw.c
+++ b/ugw/ugw.c
@@ -28,7 +28,7 @@
 #define SO_BUSY_POLL 46
 #endif
 
-#define FRAME_SIZE 256
+#define FRAME_SIZE 128
 #define BLOCK_SIZE 4096
 #define BLOCK_NR 2
 #define FRAME_NR (BLOCK_NR*(BLOCK_SIZE/FRAME_SIZE))