From: Alban Bedel <albeu@free.fr>
To: linux-kernel@vger.kernel.org
Cc: netdev@vger.kernel.org, Bjorn Helgaas <bhelgaas@google.com>,
Benoit Taine <benoit.taine@lip6.fr>,
"Eric W. Biederman" <ebiederm@xmission.com>,
"David S. Miller" <davem@davemloft.net>,
Alban Bedel <albeu@free.fr>
Subject: [PATCH 2/2] 8139too: Allow using the largest possible MTU
Date: Sat, 8 Nov 2014 12:48:36 +0100 [thread overview]
Message-ID: <1415447316-12424-2-git-send-email-albeu@free.fr> (raw)
In-Reply-To: <1415447316-12424-1-git-send-email-albeu@free.fr>
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>
---
drivers/net/ethernet/realtek/8139too.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/realtek/8139too.c b/drivers/net/ethernet/realtek/8139too.c
index 8387de9..e157541 100644
--- a/drivers/net/ethernet/realtek/8139too.c
+++ b/drivers/net/ethernet/realtek/8139too.c
@@ -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)
--
2.0.0
next prev parent reply other threads:[~2014-11-08 11:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-08 11:48 [PATCH 1/2] 8139too: Allow setting MTU larger than 1500 Alban Bedel
2014-11-08 11:48 ` Alban Bedel [this message]
2014-11-10 20:30 ` [PATCH 2/2] 8139too: Allow using the largest possible MTU David Miller
2014-11-10 20:30 ` [PATCH 1/2] 8139too: Allow setting MTU larger than 1500 David Miller
2014-11-21 0:34 ` Ben Hutchings
2014-11-21 13:58 ` Alban
2014-11-21 18:51 ` Ben Hutchings
2014-11-21 18:57 ` Alban
2014-11-23 2:42 ` Ben Hutchings
-- strict thread matches above, loose matches on Subject: below --
2013-11-17 13:05 Alban Bedel
2013-11-17 13:05 ` [PATCH 2/2] 8139too: Allow using the largest possible MTU Alban Bedel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1415447316-12424-2-git-send-email-albeu@free.fr \
--to=albeu@free.fr \
--cc=benoit.taine@lip6.fr \
--cc=bhelgaas@google.com \
--cc=davem@davemloft.net \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®