Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1573126
| From | Toshiaki Makita <toshiaki.makita1@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Inconsistency in packet drop due to MTU (eth vs veth) |
| Date | 2017-02-03 15:50 +0100 |
| Message-ID | <t6Nlv-2Me-5@gated-at.bofh.it> (permalink) |
| References | <t1o4q-3Xc-47@gated-at.bofh.it> <t1qfU-5uo-5@gated-at.bofh.it> <t5GP8-1fU-17@gated-at.bofh.it> <t5JtF-2Tw-41@gated-at.bofh.it> <t6H6q-7vO-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 17/02/03 (金) 17:07, Fredrik Markstrom wrote:
> ---- On Tue, 31 Jan 2017 17:27:09 +0100 Eric Dumazet <eric.dumazet@gmail.com> wrote ----
> > On Tue, 2017-01-31 at 14:32 +0100, Fredrik Markstrom wrote:
> > > ---- On Thu, 19 Jan 2017 19:53:47 +0100 Eric Dumazet <eric.dumazet@gmail.com> wrote ----
> > > > On Thu, 2017-01-19 at 17:41 +0100, Fredrik Markstrom wrote:
> > > > > Hello,
> > > > >
> > > > > I've noticed an inconsistency between how physical ethernet and
> > > veth handles mtu.
> > > > >
> > > > > If I setup two physical interfaces (directly connected) with
> > > different mtu:s, only the size of the outgoing packets are limited by
> > > the mtu. But with veth a packet is dropped if the mtu of the receiving
> > > interface is smaller then the packet size.
> > > > >
> > > > > This seems inconsistent to me, but maybe there is a reason for
> > > it ?
> > > > >
> > > > > Can someone confirm if it's a deliberate inconsistency or just a
> > > side effect of using dev_forward_skb() ?
> > > >
> > > > It looks this was added in commit
> > > > 38d408152a86598a50680a82fe3353b506630409
> > > > ("veth: Allow setting the L3 MTU")
> > > >
> > > > But what was really needed here was a way to change MRU :(
> > >
> > > Ok, do we consider this correct and/or something we need to be
> > > backwards compatible with ? Is it insane to believe that we can fix
> > > this "inconsistency" by removing the check ?
> > >
> > > The commit message reads "For consistency I drop packets on the
> > > receive side when they are larger than the MTU", do we know what it's
> > > supposed
> > > to be consistent with or is that lost in history ?
> >
> > There is no consistency among existing Ethernet drivers.
> >
> > Many ethernet drivers size the buffers they post in RX ring buffer
> > according to MTU.
> >
> > If MTU is set to 1500, RX buffers are sized to be about 1536 bytes,
> > so you wont be able to receive a 1700 bytes frame.
> >
> > I guess that you could add a specific veth attribute to precisely
> > control MRU, that would not break existing applications.
>
> Ok, I will propose a patch shortly. And thanks, your response time is
> awesome !
But why do you want to configure MRU?
What is the problem with setting MTU instead.
Toshiaki Makita
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Inconsistency in packet drop due to MTU (eth vs veth) Fredrik Markstrom <fredrik.markstrom@gmail.com> - 2017-01-31 14:40 +0100
Re: Inconsistency in packet drop due to MTU (eth vs veth) Eric Dumazet <eric.dumazet@gmail.com> - 2017-01-31 17:30 +0100
Re: Inconsistency in packet drop due to MTU (eth vs veth) Fredrik Markstrom <fredrik.markstrom@gmail.com> - 2017-02-03 09:10 +0100
Re: Inconsistency in packet drop due to MTU (eth vs veth) Toshiaki Makita <toshiaki.makita1@gmail.com> - 2017-02-03 15:50 +0100
csiph-web