From: Andrew Lunn <andrew@lunn.ch>
To: wangyunjian <wangyunjian@huawei.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
xudingke <xudingke@huawei.com>
Subject: Re: [PATCH net] bridge: Fix ethernet header pointer before check skb forwardable
Date: Mon, 14 Jan 2019 14:51:34 +0100 [thread overview]
Message-ID: <20190114135134.GF4635@lunn.ch> (raw)
In-Reply-To: <34EFBCA9F01B0748BEB6B629CE643AE60C9D9D88@DGGEMM533-MBX.china.huawei.com>
On Mon, Jan 14, 2019 at 04:05:23AM +0000, wangyunjian wrote:
> > -----Original Message-----
> > From: Andrew Lunn [mailto:andrew@lunn.ch]
> > Sent: Saturday, January 12, 2019 10:55 PM
> > To: wangyunjian <wangyunjian@huawei.com>
> > Cc: netdev@vger.kernel.org; xudingke <xudingke@huawei.com>
> > Subject: Re: [PATCH net] bridge: Fix ethernet header pointer before check
> > skb forwardable
> >
> > On Sat, Jan 12, 2019 at 06:28:27PM +0800, wangyunjian wrote:
> > > From: Yunjian Wang <wangyunjian@huawei.com>
> > >
> > > The skb header should be set to ethernet header before using
> > > is_skb_forwardable(including dev->hard_header_len length).
> >
> > Hi Yunjian
> >
> > I don't see any recent changes in this code. Do you know why this is needed
> > now, yet it seemed to work before? Do you have a fixes: tag for where it
> > broke?
> >
> > Thanks
> > Andrew
>
> Hi Andrew
>
> This change is commit f6367b4660dde412f9b7af94763efb1d89cefb74(
> bridge: use is_skb_forwardable in forward path).
>
> I found it when I was testing the vNIC(virtio-net) 's mtu.
> I add 2 port on linux bridge br using following commands
> brctl addbr br
> brctl addif br eth0
> brctl addif br eth1
>
> The mtu of eth0 and eth1 is 1500,so the expect result is packet larger than
> 1500 cannot pass through eth0 and eth1.But currently, when I send a 1504
> packet from eth0 to eth1, the packet passes through success, it means eth1's
> mtu limit donen't take effect.
Hi Yunjian
Thanks for the explanation. Please could you improve the description
in the patch. Also, add a Fixes tag:
Fixes: f6367b4660dd ("bridge: use is_skb_forwardable in forward path")
Thanks
Andrew
next prev parent reply other threads:[~2019-01-14 13:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-12 10:28 [PATCH net] bridge: Fix ethernet header pointer before check skb forwardable wangyunjian
2019-01-12 14:54 ` Andrew Lunn
2019-01-14 4:05 ` wangyunjian
2019-01-14 13:51 ` Andrew Lunn [this message]
2019-01-14 14:04 ` Nikolay Aleksandrov
2019-01-15 3:08 ` wangyunjian
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=20190114135134.GF4635@lunn.ch \
--to=andrew@lunn.ch \
--cc=netdev@vger.kernel.org \
--cc=wangyunjian@huawei.com \
--cc=xudingke@huawei.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.