Commit 6f6e741f authored by Alban Bedel's avatar Alban Bedel Committed by David S. Miller
Browse files

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: default avatarAlban Bedel <albeu@free.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ef786f10
...@@ -183,7 +183,7 @@ static int debug = -1; ...@@ -183,7 +183,7 @@ static int debug = -1;
#define NUM_TX_DESC 4 #define NUM_TX_DESC 4
/* max supported ethernet frame size -- must be at least (dev->mtu+14+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 */ /* max supported payload size */
#define MAX_ETH_DATA_SIZE (MAX_ETH_FRAME_SIZE - ETH_HLEN - ETH_FCS_LEN) #define MAX_ETH_DATA_SIZE (MAX_ETH_FRAME_SIZE - ETH_HLEN - ETH_FCS_LEN)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment