From: Ben Hutchings Date: Fri, 27 Jul 2012 19:50:57 +0000 (+0100) Subject: sfc: Remove bogus comment about MTU change and RX buffer overrun X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3f65ea5b2aa0f76a463c85ed39955c26faf4f5a7;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- 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) netif_dbg(efx, drv, efx->net_dev, "changing MTU to %d\n", new_mtu); mutex_lock(&efx->mac_lock); - /* Reconfigure the MAC before enabling the dma queues so that - * the RX buffers don't overflow */ net_dev->mtu = new_mtu; efx->type->reconfigure_mac(efx); mutex_unlock(&efx->mac_lock);