Ethernet Bridge development
 help / color / mirror / Atom feed
* [Bridge] Getting + maintaining a consistent MDB view in userspace?
@ 2023-08-08  0:29 Linus Lüssing
  2023-08-08  1:20 ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Linus Lüssing @ 2023-08-08  0:29 UTC (permalink / raw)
  To: bridge

Hi,

Is there a recommended way to get and monitor the MDB state from
userspace, without potential synchronization races?

I can use "bridge monitor mdb" to get changes or "bridge mdb show"
to get the current state (as well as use the underlying netlink
calls from my own application without the "bridge" command).

But if I were first calling "bridge mdb show" and then "bridge
monitor mdb" then there is a brief moment where I might miss some
changes. Or if I were doing it the other way around then a change
might wrongly override a valid entry? Or the full dump might not
be as up to date as the change event I got before?

Ideally I'd be looking for a variant of "bridge monitor mdb" which
first dumps the whole, consistent mdb state and after that
provides updates in the correct order.

Regards, Linus

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-10  2:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08  0:29 [Bridge] Getting + maintaining a consistent MDB view in userspace? Linus Lüssing
2023-08-08  1:20 ` Stephen Hemminger
2023-08-09 22:56   ` Linus Lüssing
2023-08-10  2:07     ` Linus Lüssing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox