Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1539861
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH/RFC net-next] net: fec: allow "mini jumbo" frames |
| Date | Sat, 10 Dec 2016 18:00:02 +0100 |
| Message-ID | <sMTaa-4FS-7@gated-at.bofh.it> (permalink) |
| References | <sMpF7-1vm-1@gated-at.bofh.it> |
| X-Original-To | Nikita Yushchenko <nikita.yoush@cogentembedded.com>, Fugang Duan <fugang.duan@nxp.com>, "David S. Miller" <davem@davemloft.net>, Troy Kisky <troy.kisky@boundarydevices.com>, Florian Fainelli <f.fainelli@gmail.com>, Andrew Lunn <andrew@lunn.ch>, Eric Nelson <eric@nelint.com>, Philippe Reynes <tremyfr@gmail.com>, Johannes Berg <johannes@sipsolutions.net>, netdev@vger.kernel.org |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 37 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Chris Healy <cphealy@gmail.com>, Fabio Estevam <fabio.estevam@nxp.com>, linux-kernel@vger.kernel.org, Nikita Yushchenko <nikita.yoush@cogentembedded.com> |
| X-Original-Date | Sat, 10 Dec 2016 11:55:11 -0500 |
| X-Original-Message-ID | <87lgvn3es0.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> |
| X-Original-References | <1481275255-7650-1-git-send-email-nikita.yoush@cogentembedded.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1539861 |
Show key headers only | View raw
Hi Nikita,
Nikita Yushchenko <nikita.yoush@cogentembedded.com> writes:
> This adds support for MTU slightly larger than default, on modern
> FEC flavours.
>
> Currently FEC driver uses single hardware Rx buffer per frame. On most
> FEC flavours, size of single buffer is limited by 11-bit field, and
> has to be multiple of 64 (in the worst case). Thus maximum usable Rx
> buffer size is 1984 bytes.
>
> Of those:
> - 2 bytes are used for IP header alignment,
> - 14 bytes are used by ethhdr,
> - up to 8 bytes are needed for VLAN and/or DSA tags,
> - 4 bytes are needed for CRC.
>
> Thus maximum MTU possible within current RX architecture is 1956.
>
> This patch allows exactly that. For further increase, Rx architecture
> change is needed.
>
> Use of MTU=1956 gives about 1.5% throughput improvement between two Vybrid
> boards, compared to default MTU=1500.
>
> Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
For what it's worth, I have tested your patch on my ZII Rev B boards
(see vf610-zii-dev-rev-b.dts) which have a FEC as the master net device
of their DSA trees. They still work as expected.
Tested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Thanks,
Vivien
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH/RFC net-next] net: fec: allow "mini jumbo" frames Nikita Yushchenko <nikita.yoush@cogentembedded.com> - 2016-12-09 10:30 +0100 Re: [PATCH/RFC net-next] net: fec: allow "mini jumbo" frames Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2016-12-10 18:00 +0100
csiph-web