diff options
author | David Daney <david.daney@cavium.com> | 2013-06-19 20:40:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-20 01:12:48 -0400 |
commit | 906996d6eb8fbd5ee4241a0e8e0fb013423c934d (patch) | |
tree | 511bd7b48159d078129e95c73a41bbd2133a272f /drivers/net | |
parent | c0353c7b5da4cbd2ab8227e84bbc9c79890f24ce (diff) |
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: David Daney <david.daney@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/octeon/octeon_mgmt.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/ethernet/octeon/octeon_mgmt.c b/drivers/net/ethernet/octeon/octeon_mgmt.c index 921729f9c85c..a603faf64a9f 100644 --- a/drivers/net/ethernet/octeon/octeon_mgmt.c +++ b/drivers/net/ethernet/octeon/octeon_mgmt.c | |||
@@ -1141,10 +1141,13 @@ static int octeon_mgmt_open(struct net_device *netdev) | |||
1141 | /* For compensation state to lock. */ | 1141 | /* For compensation state to lock. */ |
1142 | ndelay(1040 * NS_PER_PHY_CLK); | 1142 | ndelay(1040 * NS_PER_PHY_CLK); |
1143 | 1143 | ||
1144 | /* Some Ethernet switches cannot handle standard | 1144 | /* Default Interframe Gaps are too small. Recommended |
1145 | * Interframe Gap, increase to 16 bytes. | 1145 | * workaround is. |
1146 | * | ||
1147 | * AGL_GMX_TX_IFG[IFG1]=14 | ||
1148 | * AGL_GMX_TX_IFG[IFG2]=10 | ||
1146 | */ | 1149 | */ |
1147 | cvmx_write_csr(CVMX_AGL_GMX_TX_IFG, 0x88); | 1150 | cvmx_write_csr(CVMX_AGL_GMX_TX_IFG, 0xae); |
1148 | } | 1151 | } |
1149 | 1152 | ||
1150 | octeon_mgmt_rx_fill_ring(netdev); | 1153 | octeon_mgmt_rx_fill_ring(netdev); |