[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 85/148: also release ethernet frames here
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 85/148: also release ethernet frames here |
Date: |
Mon, 15 Aug 2016 00:47:27 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
nwest pushed a commit to annotated tag old_usrp_devel_udp
in repository gnuradio.
commit 0b50ece0ecc7e33eda0cb945e85c20018ae21e87
Author: Josh Blum <address@hidden>
Date: Tue Dec 15 19:05:48 2009 -0800
also release ethernet frames here
---
usrp2/host/lib/eth_data_transport.cc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/usrp2/host/lib/eth_data_transport.cc
b/usrp2/host/lib/eth_data_transport.cc
index 628c6ae..ad020df 100644
--- a/usrp2/host/lib/eth_data_transport.cc
+++ b/usrp2/host/lib/eth_data_transport.cc
@@ -21,6 +21,7 @@
#include <gruel/realtime.h>
#include <gruel/sys_pri.h>
#include <iostream>
+#include <cstdio>
usrp2::eth_data_transport::eth_data_transport(const std::string &ifc,
u2_mac_addr_t mac, size_t rx_bufsize)
: transport("ethernet control"), d_mac(mac), d_tx_seqno(0), d_rx_seqno(0),
@@ -63,6 +64,7 @@ void usrp2::eth_data_transport::recv_bg(void){
if (len <= sizeof(u2_eth_packet_t)){
DEBUG_LOG("D");
+ d_eth_data->release_frame(base);
continue; //drop truncated packet
}
@@ -159,5 +161,7 @@ void usrp2::eth_data_transport::recv(data_handler *handler){
void usrp2::eth_data_transport::flush(void){
//dequeue everything in the ring
ring_data rd;
- while (d_ring->dequeue(rd)){}
+ while (d_ring->dequeue(rd)){
+ d_eth_data->release_frame(rd.base);
+ }
}
- [Commit-gnuradio] [gnuradio] 115/148: place udp core in the memory space, (continued)
- [Commit-gnuradio] [gnuradio] 115/148: place udp core in the memory space, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 120/148: make it match the 36 bit wide version, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 108/148: renamed tics to ticks to be more pc, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 122/148: debug state, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 124/148: try proper reset, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 81/148: Removed stream-at changes to make this mergable into wip/usrp2. Stream-at will be re-implemented with the new vita capabilities., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 140/148: Improved the timed samples example with RTT estimation., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 123/148: forgot to declare wire, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 125/148: try a width that works..., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 80/148: working vrt tx, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 85/148: also release ethernet frames here,
git <=
- [Commit-gnuradio] [gnuradio] 88/148: revered dumb change to vrt expanded header, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 84/148: Replaced rx metadata with vrt expanded header. Removed timestamp from tx metadata, changes will be made for vrt., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 93/148: using vrt::expanded_header::unparse in usrp2 impl tx raw, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 94/148: Replaced the need for code word tables by setting the header/trailer lengths in the switch body jump table, just like in the unparser switch body., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 72/148: Logic for the start/end of burst bits, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 82/148: Merge branch 'merge_usrp2' into wip/usrp2, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 91/148: Added time spec to the start streaming command. One can do a start streaming at by specifiying a time spec, or leave the parameter off for stream now mode., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 97/148: removed the usrp2_bytesex header since it only imported from gruel, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 100/148: Made some gruel changes to get it compiling on this system., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 101/148: flattened usrp2 hierarchy `, git, 2016/08/14