summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorQiuwen Lu <[email protected]>2017-03-29 12:47:05 +0800
committerQiuwen Lu <[email protected]>2017-03-29 12:47:05 +0800
commit0e25a38782e49d0fabf2ab2c374ba5be2cbc28ae (patch)
tree2e3021b49e6af8b464ff30d66d5ac1da7561bff6 /examples
parent66017e83cfa431f3eee8ab8da22c35b05154292b (diff)
性能优化,修改了VNODE入队列的实现,循环展开。调整APP入队列哈希操作等。
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt3
-rw-r--r--examples/rxonly.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index a9e81f7..311215c 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -9,5 +9,8 @@ target_link_libraries(mrtest-l2fwd marsio pthread)
add_executable(mrtest-fb feedback.c)
target_link_libraries(mrtest-fb marsio pthread)
+add_executable(mrtest-rxonly rxonly.c)
+target_link_libraries(mrtest-rxonly marsio pthread)
+
#add_executable(pag_rx_sample pag/rx_sample.c)
#target_link_libraries(pag_rx_sample pag) \ No newline at end of file
diff --git a/examples/rxonly.c b/examples/rxonly.c
index 9bd2f9c..633cbc4 100644
--- a/examples/rxonly.c
+++ b/examples/rxonly.c
@@ -29,7 +29,7 @@ void * rxonly_loop(void * arg)
for (;;)
{
ret = marsio_recv_burst(dev_handler, sid, rx_buff, nr_burst);
- marsio_buff_free(dev_handler, rx_buff, nr_burst);
+ marsio_buff_free(dev_handler, rx_buff, ret);
}
return (void *)NULL;