From: Felix Fietkau Date: Sun, 18 Jan 2015 20:17:41 +0000 (+0000) Subject: ralink: fix ethernet rx buffer size breakage X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9e7cc83edcb1bf2d36223423167f09ef06e34201;p=openwrt%2Fstaging%2Fjow.git ralink: fix ethernet rx buffer size breakage Signed-off-by: Felix Fietkau SVN-Revision: 44047 --- diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c index ad74550a4d..54a1b9d6f8 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c @@ -1286,7 +1286,7 @@ static int fe_change_mtu(struct net_device *dev, int new_mtu) if (new_mtu <= ETH_DATA_LEN) { priv->frag_size = fe_max_frag_size(ETH_DATA_LEN); - priv->rx_buf_size = fe_max_buf_size(ETH_DATA_LEN); + priv->rx_buf_size = MAX_RX_LENGTH; } else { priv->frag_size = PAGE_SIZE; priv->rx_buf_size = fe_max_buf_size(PAGE_SIZE); @@ -1443,7 +1443,7 @@ static int fe_probe(struct platform_device *pdev) priv->soc = soc; priv->msg_enable = netif_msg_init(fe_msg_level, FE_DEFAULT_MSG_ENABLE); priv->frag_size = fe_max_frag_size(ETH_DATA_LEN); - priv->rx_buf_size = fe_max_buf_size(ETH_DATA_LEN); + priv->rx_buf_size = MAX_RX_LENGTH; if (priv->frag_size > PAGE_SIZE) { dev_err(&pdev->dev, "error frag size.\n"); err = -EINVAL;