URL
https://opencores.org/ocsvn/fade_ether_protocol/fade_ether_protocol/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 21 |
Rev 23 |
Line 209... |
Line 209... |
ioctl(frs[i],L3_V1_IOC_WRITEPTRS,len);
|
ioctl(frs[i],L3_V1_IOC_WRITEPTRS,len);
|
}
|
}
|
}
|
}
|
fflush(stdout);
|
fflush(stdout);
|
} while ((leave[0] && leave[1] && leave[2]) == 0);
|
} while ((leave[0] && leave[1] && leave[2]) == 0);
|
|
pthread_join(ucmd_thread, NULL);
|
for(i=0;i<=2;i++) {
|
for(i=0;i<=2;i++) {
|
if(active[i]) {
|
if(active[i]) {
|
res = ioctl(frs[i],L3_V1_IOC_FREEMAC,0);
|
res = ioctl(frs[i],L3_V1_IOC_FREEMAC,0);
|
}
|
}
|
munmap(v[i],blen[i]);
|
munmap(v[i],blen[i]);
|
close(frs[i]);
|
close(frs[i]);
|
}
|
}
|
pthread_join(ucmd_thread, NULL);
|
|
fprintf(stderr,"act0:%d act1:%d act2:%d\n",active[0],active[1],active[2]);
|
fprintf(stderr,"act0:%d act1:%d act2:%d\n",active[0],active[1],active[2]);
|
for(i=0;i<3;i++) {
|
for(i=0;i<3;i++) {
|
fprintf(stderr,"total data %d=%lld time=%g throughput=%g [Mb/s]\n",i,total_len[i], tend, total_len[i]/tend*8.0);
|
fprintf(stderr,"total data %d=%lld time=%g throughput=%g [Mb/s]\n",i,total_len[i], tend, total_len[i]/tend*8.0);
|
}
|
}
|
}
|
}
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.