Author: eb Date: 2007-12-14 11:39:04 -0700 (Fri, 14 Dec 2007) New Revision: 7178
Modified: usrp2/trunk/firmware/lib/eth_mac.c Log: revised low and high water marks in eth mac Modified: usrp2/trunk/firmware/lib/eth_mac.c =================================================================== --- usrp2/trunk/firmware/lib/eth_mac.c 2007-12-14 17:37:39 UTC (rev 7177) +++ usrp2/trunk/firmware/lib/eth_mac.c 2007-12-14 18:39:04 UTC (rev 7178) @@ -66,10 +66,12 @@ eth_mac->tx_pause_en = 1; // pay attn to pause frames sent to us // set rx flow control high and low water marks - unsigned int lwmark = (2*2048 + 64)/4; // 2 * 2048-byte frames + 1 * 64-byte pause frame - eth_mac->fc_lwmark = lwmark; - eth_mac->fc_hwmark = lwmark + 2048/4; // plus a 2048-byte frame + // unsigned int lwmark = (2*2048 + 64)/4; // 2 * 2048-byte frames + 1 * 64-byte pause frame + // eth_mac->fc_hwmark = lwmark + 2048/4; // plus a 2048-byte frame + eth_mac->fc_lwmark = 400; // there is currently 1024 lines in the fifo + eth_mac->fc_hwmark = 800; + eth_mac->pause_quanta_set = 38; // a bit more than 1 max frame 16kb/512 + fudge eth_mac->pause_frame_send_en = 1; // enable sending pause frames } _______________________________________________ Commit-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/commit-gnuradio
