#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))
//struct sockaddr_ll *addr = (void*)hdr + TPACKET_ALIGN(ctx->hdrlen);
(void)ret;
struct can_frame *cf_mmap = (void*)hdr + hdr->tp_mac;
- //printf("ret:%d st:%#08x m:%d RX in frame %2d, CAN ID %#3x\n", ret, hdr->tp_status, hdr->tp_mac, ctx->current, cf_mmap->can_id);
*cf = *cf_mmap;
hdr->tp_status = 0;
ctx->current = (ctx->current + 1) % FRAME_NR;