Commit 485982a9 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jeff Garzik

skge: increase TX threshold for Jumbo

Need to increase TX threshold when doing Jumbo frames on dual port board
to avoid underruns. (Code from sk98lin).
Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 21d7f677
...@@ -1633,15 +1633,14 @@ static void genesis_mac_init(struct skge_hw *hw, int port) ...@@ -1633,15 +1633,14 @@ static void genesis_mac_init(struct skge_hw *hw, int port)
} }
xm_write16(hw, port, XM_RX_CMD, r); xm_write16(hw, port, XM_RX_CMD, r);
/* We want short frames padded to 60 bytes. */ /* We want short frames padded to 60 bytes. */
xm_write16(hw, port, XM_TX_CMD, XM_TX_AUTO_PAD); xm_write16(hw, port, XM_TX_CMD, XM_TX_AUTO_PAD);
/* /* Increase threshold for jumbo frames on dual port */
* Bump up the transmit threshold. This helps hold off transmit if (hw->ports > 1 && jumbo)
* underruns when we're blasting traffic from both ports at once. xm_write16(hw, port, XM_TX_THR, 1020);
*/ else
xm_write16(hw, port, XM_TX_THR, 512); xm_write16(hw, port, XM_TX_THR, 512);
/* /*
* Enable the reception of all error frames. This is is * Enable the reception of all error frames. This is is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment