diff options
Diffstat (limited to 'usrp2/firmware/lib')
-rw-r--r-- | usrp2/firmware/lib/eth_mac.c | 2 | ||||
-rw-r--r-- | usrp2/firmware/lib/eth_mac_regs.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/usrp2/firmware/lib/eth_mac.c b/usrp2/firmware/lib/eth_mac.c index f0b3a57ba..5fadaf40b 100644 --- a/usrp2/firmware/lib/eth_mac.c +++ b/usrp2/firmware/lib/eth_mac.c @@ -69,6 +69,8 @@ eth_mac_init(const u2_mac_addr_t *src) eth_mac->fc_lwmark = 600; // there are currently 2047 lines in the fifo eth_mac->fc_hwmark = 1200; + eth_mac->fc_padtime = 1700; // how long before flow control runs out do we + // request a re-pause. Units of 8ns (bytes) //eth_mac->tx_pause_en = 0; // pay attn to pause frames sent to us //eth_mac->pause_quanta_set = 38; // a bit more than 1 max frame 16kb/512 + fudge diff --git a/usrp2/firmware/lib/eth_mac_regs.h b/usrp2/firmware/lib/eth_mac_regs.h index bb6d2519b..8daab937d 100644 --- a/usrp2/firmware/lib/eth_mac_regs.h +++ b/usrp2/firmware/lib/eth_mac_regs.h @@ -81,6 +81,7 @@ typedef struct { volatile int miitx_data; volatile int miirx_data; volatile int miistatus; + volatile int fc_padtime; } eth_mac_regs_t; // miicommand register |