[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101228114520.GA17774@rere.qmqm.pl>
Date: Tue, 28 Dec 2010 12:45:20 +0100
From: Michał Mirosław <mirq-linux@...e.qmqm.pl>
To: Hans Ulli Kroll <ulli.kroll@...glemail.com>
Cc: gemini-board-dev@...ts.berlios.de, netdev@...r.kernel.org,
Christoph Biedl <linux-kernel.bfrz@...chmal.in-ulm.de>
Subject: Re: [RFC PATCH v2] Gemini: Gigabit ethernet driver
On Mon, Dec 27, 2010 at 08:21:44PM +0100, Hans Ulli Kroll wrote:
> On Mon, 27 Dec 2010, Michał Mirosław wrote:
> > + .dis_tx = 1,
> > + .dis_rx = 1,
> > + .max_len = 2, /* magic; 512 << max_len? */
> > + .ipv4_rx_chksum = 1,
> > + .ipv6_rx_chksum = 1,
>
> This is what I found in some netbsd code for maxlen
>
> #define CONFIG0_MAXLEN_MASK __BITS(8,10)
> #define CONFIG0_MAXLEN_GET(x) (((x) >> 8) &
> CONFIG0_MAXLEN_MASK)
> #define CONFIG0_MAXLEN(x) (((x) &
> CONFIG0_MAXLEN_MASK) << 8)
> #define CONFIG0_MAXLEN_1536 0
> #define CONFIG0_MAXLEN_1518 1
> #define CONFIG0_MAXLEN_1522 2
> #define CONFIG0_MAXLEN_1548 3
> #define CONFIG0_MAXLEN_JUMBO 4
>
> spec. for the SL3616 says jumbo is 9k frames, but i didn't proved this.
This is what I got after quick testing:
max_len rx_max
0 1536
1 1518
2 1522
3 1542
4 9212
5 10236
6 1518
7 1518
rx_max is total packet's length (MAC header + (VLAN) + payload).
Best Regards,
Michał Mirosław
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists