public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: passt-dev@passt.top, Jon Maloy <jmaloy@redhat.com>,
	Paul Holzinger <pholzing@redhat.com>
Subject: Re: [PATCH 1/2] netlink: Use regular request/response netlink socket for initial neighbour sync
Date: Tue, 26 May 2026 12:15:05 +0200 (CEST)	[thread overview]
Message-ID: <20260526121504.4bfa9d0e@elisabeth> (raw)
In-Reply-To: <ag-dEzSmkWmJpaMb@zatzit>

On Fri, 22 May 2026 10:02:27 +1000
David Gibson <david@gibson.dropbear.id.au> wrote:

> On Thu, May 21, 2026 at 08:01:45PM +0200, Stefano Brivio wrote:
> > ...instead of the one dedicated to the neighbour monitor, because, if
> > neighbour notifications start coming in before or while we send the
> > initial request to read out the neighbour tables, messages and
> > sequence numbers will collide.
> > 
> > For example, if nl_neigh_sync() sends a RTM_GETNEIGH request with
> > sequence 20, we expect a corresponding reply with sequence 20. But
> > given that we already used the same socket to subscribe to
> > notifications, and notifications don't correspond to any specific
> > request we sent, we might now get a message with sequence 0.  
> 
> Heh.  Called it, kinda.  Nice job tracking this down.

Your suggestion that we were probably mixing up messages helped as a
starting point. Then I think we concluded that _of course_ it's
different sockets and they can't influence each other.

So I started looking into how two netlink sockets belonging to the same
process could possibly interfere with each other, until I tried to skip
the creation of nl_neigh_sock and realised that nl_neigh_sync() stopped
working altogether... oops.

-- 
Stefano


  reply	other threads:[~2026-05-26 10:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-21 18:01 [PATCH 0/2] Fix equence collision with neighbour notification, and one nit Stefano Brivio
2026-05-21 18:01 ` [PATCH 1/2] netlink: Use regular request/response netlink socket for initial neighbour sync Stefano Brivio
2026-05-22  0:02   ` David Gibson
2026-05-26 10:15     ` Stefano Brivio [this message]
2026-05-21 18:01 ` [PATCH 2/2] netlink: Fix comments to variables for netlink sockets and sequence Stefano Brivio
2026-05-22  0:03   ` David Gibson

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=20260526121504.4bfa9d0e@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=jmaloy@redhat.com \
    --cc=passt-dev@passt.top \
    --cc=pholzing@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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).