From: Vincent Bernat <vincent@bernat.ch>
To: David Miller <davem@davemloft.net>
Cc: soltys@ziu.info, netdev@vger.kernel.org,
jay.vosburgh@canonical.com, maheshb@google.com,
chonggangli@google.com
Subject: Re: [PATCH net 1/1] bonding: fix PACKET_ORIGDEV regression on bonding masters
Date: Tue, 08 Jan 2019 08:46:20 -0500 [thread overview]
Message-ID: <87va2z45zn.fsf@bernat.ch> (raw)
In-Reply-To: <20190107.091225.1792564924949177673.davem@davemloft.net> (David Miller's message of "Mon, 07 Jan 2019 09:12:25 -0800 (PST)")
❦ 7 janvier 2019 09:12 -08, David Miller <davem@davemloft.net>:
>> The patch reverts to pre-b89f04c61efe state, so:
>>
>> - both master and original (via PACKET_ORIGDEV) devices are available
>> when listening on the master
>> - original device is available when listening directly on one of its
>> slaves
>>
>> Reported-by: Vincent Bernat <vincent@bernat.ch>
>> Signed-off-by: Michal Soltys <soltys@ziu.info>
Maybe add:
Fixes: b89f04c61efe ("bonding: deliver link-local packets with skb->dev set to link that packets arrived on")
> It is tiring and disappointing to see the behavior sway back and forth
> multiple times like this. We are breaking someone, then breaking them
> again if they adjusted to the new behavior.
>
> Pretty much unacceptable.
>
> I'm not applying anything until someone can convince me the full scope
> of the situation and why this time it's "right."
For me, the problem was not visible until the fix introduced for 4.19,
hence the late report of the problem. Before 4.12 (and from 2.6.27 for
non-multicast packets), the behaviour was:
- ability to receive link-local packets on physical interfaces by
listening directly to them,
- ability to receive link-local packets on bonded devices and get the
original interface using PACKET_ORIGDEV.
The patch introduced in 4.12 doesn't change the first ability and breaks
the second one as the packets are not received on bonded devices
anymore.
With the fix introduced in 4.19 enables to receive link-local packets on
bonded devices again, but it's still not possible to get the original
interface with PACKET_ORIGDEV.
I don't understand what b89f04c61efe purpose is. My first report was on
November 30th <https://marc.info/?l=linux-netdev&m=154361371507825&w=2>
but I didn't get any additional info, notably how the original interface
is retrieved when listening to a bond device. Without an example of
usage, it's difficult to understand if a revert would break anything.
However, a revert would unbreak users of PACKET_ORIGDEV.
--
The human race has one really effective weapon, and that is laughter.
-- Mark Twain
next prev parent reply other threads:[~2019-01-08 13:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-07 16:29 [PATCH net 0/1] bonding: fix PACKET_ORIGDEV regression Michal Soltys
2019-01-07 16:29 ` [PATCH net 1/1] bonding: fix PACKET_ORIGDEV regression on bonding masters Michal Soltys
2019-01-07 17:12 ` David Miller
2019-01-08 13:46 ` Vincent Bernat [this message]
2019-01-13 23:03 ` David Miller
2019-01-14 2:01 ` Maciej Żenczykowski
2019-01-14 8:00 ` Vincent Bernat
2019-01-15 2:19 ` Mahesh Bandewar (महेश बंडेवार)
2019-01-16 2:58 ` Michal Soltys
2019-01-16 2:01 ` Michal Soltys
2019-01-18 0:27 ` Michal Soltys
2019-01-18 6:58 ` Maciej Żenczykowski
2019-01-29 1:47 ` Michal Soltys
2019-01-29 9:39 ` Maciej Żenczykowski
2019-02-18 16:55 ` [PATCH v2] bonding: fix PACKET_ORIGDEV regression Michal Soltys
2019-02-19 1:51 ` David Ahern
2019-02-19 9:14 ` Maciej Żenczykowski
2019-02-21 21:21 ` David Miller
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=87va2z45zn.fsf@bernat.ch \
--to=vincent@bernat.ch \
--cc=chonggangli@google.com \
--cc=davem@davemloft.net \
--cc=jay.vosburgh@canonical.com \
--cc=maheshb@google.com \
--cc=netdev@vger.kernel.org \
--cc=soltys@ziu.info \
/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