aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-07-27 15:50:57 -0400
committerBen Hutchings <bhutchings@solarflare.com>2012-08-24 15:10:23 -0400
commit3f65ea5b2aa0f76a463c85ed39955c26faf4f5a7 (patch)
treedd07c3cbd93ca44d132d0d86be1f3d400d874b7c /drivers/net/ethernet/sfc
parent7bde852afc88909d78e617b70d3e7a3dc6bc04ff (diff)
sfc: Remove bogus comment about MTU change and RX buffer overrun
RX DMA is limited by the length specified in each descriptor and not by the MAC. Over-length frames may get into the RX FIFO regardless of the MAC settings, due to a hardware bug, but they will be truncated by the packet DMA engine and reported as such in the completion event. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r--drivers/net/ethernet/sfc/efx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c
index b29db12756f9..4105a6664765 100644
--- a/drivers/net/ethernet/sfc/efx.c
+++ b/drivers/net/ethernet/sfc/efx.c
@@ -1953,8 +1953,6 @@ static int efx_change_mtu(struct net_device *net_dev, int new_mtu)
1953 netif_dbg(efx, drv, efx->net_dev, "changing MTU to %d\n", new_mtu); 1953 netif_dbg(efx, drv, efx->net_dev, "changing MTU to %d\n", new_mtu);
1954 1954
1955 mutex_lock(&efx->mac_lock); 1955 mutex_lock(&efx->mac_lock);
1956 /* Reconfigure the MAC before enabling the dma queues so that
1957 * the RX buffers don't overflow */
1958 net_dev->mtu = new_mtu; 1956 net_dev->mtu = new_mtu;
1959 efx->type->reconfigure_mac(efx); 1957 efx->type->reconfigure_mac(efx);
1960 mutex_unlock(&efx->mac_lock); 1958 mutex_unlock(&efx->mac_lock);