Skip to content

Commit

Permalink
8139too: Allow using the largest possible MTU
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alban Bedel authored and David S. Miller committed Nov 10, 2014
1 parent ef786f1 commit 6f6e741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/realtek/8139too.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static int debug = -1;
#define NUM_TX_DESC 4

/* max supported ethernet frame size -- must be at least (dev->mtu+14+4).*/
#define MAX_ETH_FRAME_SIZE 1536
#define MAX_ETH_FRAME_SIZE 1792

/* max supported payload size */
#define MAX_ETH_DATA_SIZE (MAX_ETH_FRAME_SIZE - ETH_HLEN - ETH_FCS_LEN)
Expand Down

0 comments on commit 6f6e741

Please sign in to comment.