Commit 906996d6 authored by David Daney's avatar David Daney Committed by David S. Miller

netdev: octeon_mgmt: Correct tx IFG workaround.

The previous fix was still too agressive to meet ieee specs.  Increase
to (14, 10).
Signed-off-by: default avatarDavid Daney <david.daney@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c0353c7b
...@@ -1141,10 +1141,13 @@ static int octeon_mgmt_open(struct net_device *netdev) ...@@ -1141,10 +1141,13 @@ static int octeon_mgmt_open(struct net_device *netdev)
/* For compensation state to lock. */ /* For compensation state to lock. */
ndelay(1040 * NS_PER_PHY_CLK); ndelay(1040 * NS_PER_PHY_CLK);
/* Some Ethernet switches cannot handle standard /* Default Interframe Gaps are too small. Recommended
* Interframe Gap, increase to 16 bytes. * workaround is.
*
* AGL_GMX_TX_IFG[IFG1]=14
* AGL_GMX_TX_IFG[IFG2]=10
*/ */
cvmx_write_csr(CVMX_AGL_GMX_TX_IFG, 0x88); cvmx_write_csr(CVMX_AGL_GMX_TX_IFG, 0xae);
} }
octeon_mgmt_rx_fill_ring(netdev); octeon_mgmt_rx_fill_ring(netdev);
......
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