aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-18 20:17:41 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-01-18 20:17:41 +0000
commit311b20a71c0ed5686b255d1e6d88a4f9bfe89d02 (patch)
tree831f2f3ceb2fe162492cde3618768b18f5bd8b73 /target/linux/ramips
parent7e7a5831f715435be276b7a7b3b6e879464a3699 (diff)
downloadupstream-311b20a71c0ed5686b255d1e6d88a4f9bfe89d02.tar.gz
upstream-311b20a71c0ed5686b255d1e6d88a4f9bfe89d02.tar.bz2
upstream-311b20a71c0ed5686b255d1e6d88a4f9bfe89d02.zip
ralink: fix ethernet rx buffer size breakage
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44047 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c4
1 files changed, 2 insertions, 2 deletions
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;