Netdev List
 help / color / mirror / Atom feed
From: Nikolay Aleksandrov <razor@blackwall.org>
To: Felix Fietkau <nbd@nbd.name>, Paolo Abeni <pabeni@redhat.com>,
	netdev@vger.kernel.org
Subject: Re: [PATCH net-next] net: bridge: do not send arp replies if src and target hw addr is the same
Date: Tue, 9 Jan 2024 14:02:02 +0200	[thread overview]
Message-ID: <2b3bbe3a-6796-458c-88f9-1458a449d79c@blackwall.org> (raw)
In-Reply-To: <e5d1e7da-0b90-45d7-b7ab-75ce2ef79208@nbd.name>

On 09/01/2024 13:58, Felix Fietkau wrote:
> On 09.01.24 12:36, Paolo Abeni wrote:
>> On Thu, 2024-01-04 at 15:25 +0100, Felix Fietkau wrote:
>>> There are broken devices in the wild that handle duplicate IP address
>>> detection by sending out ARP requests for the IP that they received from a
>>> DHCP server and refuse the address if they get a reply.
>>> When proxyarp is enabled, they would go into a loop of requesting an address
>>> and then NAKing it again.
>>
>> Can you instead provide the same functionality with some nft/tc
>> ingress/ebpf filter?
>>
>> I feel uneasy to hard code this kind of policy, even if it looks
>> sensible. I suspect it could break some other currently working weird
>> device behavior.
>>
>> Otherwise it could be nice provide some arpfilter flag to
>> enable/disable this kind filtering.
> 
> I don't see how it could break anything, because it wouldn't suppress non-proxied responses. nft/arpfilter is just too expensive, and I don't think it makes sense to force the use of tc filters to suppress nonsensical responses generated by the bridge layer.
> 
> - Felix
> 

I also share Paolo's concerns, and I don't think such specific policy
should be hardcoded in the bridge. It can already be achieved via tc/nft/ebpf
as mentioned. Also please CC bridge maintainers for bridge patches, I saw this
one because of Paolo's earlier reply.

Thanks,
 Nik


  reply	other threads:[~2024-01-09 12:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-04 14:25 [PATCH net-next] net: bridge: do not send arp replies if src and target hw addr is the same Felix Fietkau
2024-01-09 11:36 ` Paolo Abeni
2024-01-09 11:58   ` Felix Fietkau
2024-01-09 12:02     ` Nikolay Aleksandrov [this message]
2024-01-09 12:41       ` Felix Fietkau
2024-01-09 12:14     ` Paolo Abeni
2024-01-09 12:18       ` Nikolay Aleksandrov
2024-01-09 12:49 ` Dave Taht

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=2b3bbe3a-6796-458c-88f9-1458a449d79c@blackwall.org \
    --to=razor@blackwall.org \
    --cc=nbd@nbd.name \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox