netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj@gmail.com>
To: David Ahern <dsahern@gmail.com>, netdev@vger.kernel.org
Subject: Re: [PATCH 1/4] net: arp: introduce arp_evict_nocarrier sysctl parameter
Date: Thu, 14 Oct 2021 11:52:00 -0700	[thread overview]
Message-ID: <81cd604b9d44d2058464d90788f43d6803f7eea3.camel@gmail.com> (raw)
In-Reply-To: <1d503584-e463-3324-140a-14c86521cd59@gmail.com>

Hi David,

On Thu, 2021-10-14 at 12:34 -0600, David Ahern wrote:
> On 10/13/21 4:27 PM, James Prestwood wrote:
> > This change introduces a new sysctl parameter, arp_evict_nocarrier.
> > When set (default) the ARP cache will be cleared on a NOCARRIER
> > event.
> > This new option has been defaulted to '1' which maintains existing
> > behavior.
> > 
> > Clearing the ARP cache on NOCARRIER is relatively new, introduced
> > by:
> > 
> > commit 859bd2ef1fc1110a8031b967ee656c53a6260a76
> > Author: David Ahern <dsahern@gmail.com>
> > Date:   Thu Oct 11 20:33:49 2018 -0700
> > 
> >     net: Evict neighbor entries on carrier down
> > 
> > The reason for this changes is to prevent the ARP cache from being
> > cleared when a wireless device roams. Specifically for wireless
> > roams
> > the ARP cache should not be cleared because the underlying network
> > has not
> > changed. Clearing the ARP cache in this case can introduce
> > significant
> > delays sending out packets after a roam.
> 
> how do you know if the existing ARP / ND entries are valid when
> roaming?
> 

I guess there is no way of really knowing, but since your roaming in
the same network I think we can assume the entries are just as valid
prior to the roam as after it right? If there are invalid entries, they
were likely invalid prior to the roam too.

I obviously cant speak to all network configurations, but I think if
your network infrastructure is set up to roam you into a different
subnet you're doing something wrong. Or I can't think of a reason to do
this, it would defeat the purpose of quickly roaming between BSS's
since you would then have to do DHCP aftewards.

Thanks,
James


      reply	other threads:[~2021-10-14 18:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-13 22:27 [PATCH 1/4] net: arp: introduce arp_evict_nocarrier sysctl parameter James Prestwood
2021-10-13 22:27 ` [PATCH 2/4] net: ndisc: introduce ndisc_evict_nocarrier " James Prestwood
2021-10-13 22:27 ` [PATCH 3/4] doc: networking: document arp_evict_nocarrier James Prestwood
2021-10-14 18:34   ` David Ahern
2021-10-13 22:27 ` [PATCH 4/4] doc: networking: document ndisc_evict_nocarrier James Prestwood
2021-10-13 23:37 ` [PATCH 1/4] net: arp: introduce arp_evict_nocarrier sysctl parameter Jakub Kicinski
2021-10-13 23:40   ` Jakub Kicinski
2021-10-14 16:32     ` James Prestwood
2021-10-14 16:43       ` Jakub Kicinski
2021-10-14 16:29   ` James Prestwood
2021-10-14 16:59     ` Jakub Kicinski
2021-10-14 18:32       ` David Ahern
2021-10-14  8:30 ` Daniel Borkmann
2021-10-14 16:20   ` James Prestwood
2021-10-14 18:34 ` David Ahern
2021-10-14 18:52   ` James Prestwood [this message]

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=81cd604b9d44d2058464d90788f43d6803f7eea3.camel@gmail.com \
    --to=prestwoj@gmail.com \
    --cc=dsahern@gmail.com \
    --cc=netdev@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).