All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Borkmann <daniel@iogearbox.net>
To: Yuwei Wang <wangyuweihx@gmail.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: davem@davemloft.net, "Eric Dumazet" <edumazet@google.com>,
	roopa@nvidia.com, dsahern@kernel.org, 秦迪 <qindi@staff.weibo.com>,
	netdev@vger.kernel.org, "yuwei wang" <wangyuweihx@hotmail.com>,
	razor@blackwall.org
Subject: Re: [PATCH net-next v2] net, neigh: introduce interval_probe_time for periodic probe
Date: Tue, 24 May 2022 22:53:44 +0200	[thread overview]
Message-ID: <3fc6aba3-fc63-5722-7a6a-48b7472deffd@iogearbox.net> (raw)
In-Reply-To: <CANmJ_FN6_79nRmmzKzoExzD+KJ5Uzehj8Rw_GQhV0SiBpF3rPg@mail.gmail.com>

On 5/24/22 9:13 PM, Yuwei Wang wrote:
> On Wed, 25 May 2022 at 02:07, Jakub Kicinski <kuba@kernel.org> wrote:
>> On Tue, 24 May 2022 17:32:57 +0200 Daniel Borkmann wrote:
>>> Right, maybe we could just split this into two: 1) prevent misconfig (see
>>> below), and 2) make the timeout configurable as what Yuwei has. Wdyt?
>>>
>>> diff --git a/net/core/neighbour.c b/net/core/neighbour.c
>>> index 47b6c1f0fdbb..54625287ee5b 100644
>>> --- a/net/core/neighbour.c
>>> +++ b/net/core/neighbour.c
>>> @@ -1579,7 +1579,7 @@ static void neigh_managed_work(struct work_struct *work)
>>>           list_for_each_entry(neigh, &tbl->managed_list, managed_list)
>>>                   neigh_event_send_probe(neigh, NULL, false);
>>>           queue_delayed_work(system_power_efficient_wq, &tbl->managed_work,
>>> -                          NEIGH_VAR(&tbl->parms, DELAY_PROBE_TIME));
>>> +                          max(NEIGH_VAR(&tbl->parms, DELAY_PROBE_TIME), HZ));
>>>           write_unlock_bh(&tbl->lock);
>>>    }
>>
>> FWIW that was my reaction as well. Let's do that unless someone
>> disagrees.
> 
> I agree too, so there will be as following parts:
> 1) prevent misconfig by offering a minimum value
> 2) separate the params `INTERVAL_PROBE_TIME` as the probe interval for
> `MANAGED` neigh

Ok.

> 3) notify the change of `INTERVAL_PROBE_TIME` and set the driver poll interval
> according to `INTERVAL_PROBE_TIME` instead of `DELAY_PROBE_TIME`
> 
> I still have doubt about whether we need part 3, or if exist this scenario:
> - the NIC offloading the data plane.
> - the driver needs periodically poll the device for neighbours activity
> 
> May I ask for further explanation?

Well, but for that case we would need some in-tree driver users of managed neigh
first, and they can probably drive it according to their needs if they require a
notifier message. Are you saying you are panning to convert the mlx one over to
use managed neigh?

Thanks,
Daniel

  reply	other threads:[~2022-05-24 20:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-22  3:17 [PATCH net-next v2] net, neigh: introduce interval_probe_time for periodic probe Yuwei Wang
2022-05-24  8:38 ` Paolo Abeni
2022-05-24  9:38   ` Yuwei Wang
2022-05-24 10:41     ` Paolo Abeni
2022-05-24 14:33       ` Yuwei Wang
2022-05-24 15:32       ` Daniel Borkmann
2022-05-24 18:07         ` Jakub Kicinski
2022-05-24 19:13           ` Yuwei Wang
2022-05-24 20:53             ` Daniel Borkmann [this message]
2022-06-08 15:02             ` Daniel Borkmann

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=3fc6aba3-fc63-5722-7a6a-48b7472deffd@iogearbox.net \
    --to=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=qindi@staff.weibo.com \
    --cc=razor@blackwall.org \
    --cc=roopa@nvidia.com \
    --cc=wangyuweihx@gmail.com \
    --cc=wangyuweihx@hotmail.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.