aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/realtek
diff options
context:
space:
mode:
authorAlban Bedel <albeu@free.fr>2014-11-08 06:48:36 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-10 15:30:02 -0500
commit6f6e741f6de5ed5eedf7d19c9c0f8c73eaa0da7d (patch)
tree6b2b9407ebff584fb60f83f2b065a412bf0de8b2 /drivers/net/ethernet/realtek
parentef786f106fe878a90f90b67aa95201a266de12de (diff)
8139too: Allow using the largest possible MTU
This driver allows MTU up to 1518 bytes which is not enought to run batman-adv. Simply raise the maximum packet size up to the maximum allowed by the transmit descriptor, 1792 bytes, giving a maximum MTU of 1774 bytes. Signed-off-by: Alban Bedel <albeu@free.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/realtek')
-rw-r--r--drivers/net/ethernet/realtek/8139too.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/8139too.c b/drivers/net/ethernet/realtek/8139too.c
index 8387de985c06..e157541b842b 100644
--- a/drivers/net/ethernet/realtek/8139too.c
+++ b/drivers/net/ethernet/realtek/8139too.c
@@ -183,7 +183,7 @@ static int debug = -1;
183#define NUM_TX_DESC 4 183#define NUM_TX_DESC 4
184 184
185/* max supported ethernet frame size -- must be at least (dev->mtu+14+4).*/ 185/* max supported ethernet frame size -- must be at least (dev->mtu+14+4).*/
186#define MAX_ETH_FRAME_SIZE 1536 186#define MAX_ETH_FRAME_SIZE 1792
187 187
188/* max supported payload size */ 188/* max supported payload size */
189#define MAX_ETH_DATA_SIZE (MAX_ETH_FRAME_SIZE - ETH_HLEN - ETH_FCS_LEN) 189#define MAX_ETH_DATA_SIZE (MAX_ETH_FRAME_SIZE - ETH_HLEN - ETH_FCS_LEN)