All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2-next v6 0/3] bridge: dump mcast querier state per vlan
@ 2025-06-25  8:39 Fabian Pfitzner
  2025-06-25  8:39 ` [PATCH iproute2-next v6 1/3] bridge: move mcast querier dumping code into a shared function Fabian Pfitzner
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Fabian Pfitzner @ 2025-06-25  8:39 UTC (permalink / raw)
  To: netdev; +Cc: entwicklung, razor, bridge, dsahern, idosch, Fabian Pfitzner

Dump the multicast querier state per vlan.
This commit is almost identical to [1].

The querier state can be seen with:

bridge -d vlan global

The options for vlan filtering and vlan mcast snooping have to be enabled
in order to see the output:

ip link set [dev] type bridge mcast_vlan_snooping 1 vlan_filtering 1

The querier state shows the following information for IPv4 and IPv6
respectively:

1) The ip address of the current querier in the network. This could be
   ourselves or an external querier.
2) The port on which the querier was seen
3) Querier timeout in seconds

[1] https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=16aa4494d7fc6543e5e92beb2ce01648b79f8fa2

v1->v2
	- refactor code
	- link to v1: https://lore.kernel.org/netdev/20250604105322.1185872-1-f.pfitzner@pengutronix.de/
v2->v3
	- move code into a shared function
	- use shared function in bridge and ip utility
	- link to v2: https://lore.kernel.org/netdev/20250611121151.1660231-1-f.pfitzner@pengutronix.de/
v3->v4
	- refactor code
	- split patch into three patches
	- link to v3: https://lore.kernel.org/netdev/20250620121620.2827020-1-f.pfitzner@pengutronix.de/
v4->v5
	- run checkpatch
	- link to v4: https://lore.kernel.org/netdev/20250623084518.1101527-1-f.pfitzner@pengutronix.de/
v5->v6
	- delete empty line
	- link to v5: https://lore.kernel.org/netdev/20250623093316.1215970-1-f.pfitzner@pengutronix.de/

Fabian Pfitzner (3):
  bridge: move mcast querier dumping code into a shared function
  bridge: dump mcast querier per vlan
  bridge: refactor bridge mcast querier function

 bridge/vlan.c      |  5 ++++
 include/bridge.h   |  3 +++
 ip/iplink_bridge.c | 59 +++-------------------------------------------
 lib/bridge.c       | 57 ++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 68 insertions(+), 56 deletions(-)

--
2.39.5

---
Fabian Pfitzner (3):
      bridge: move mcast querier dumping code into a shared function
      bridge: dump mcast querier per vlan
      bridge: refactor bridge mcast querier function

 bridge/vlan.c      |  5 +++++
 include/bridge.h   |  3 +++
 ip/iplink_bridge.c | 59 +++---------------------------------------------------
 lib/bridge.c       | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 67 insertions(+), 56 deletions(-)
---
base-commit: 6331444995237782f4bdfae7d3cbef7f319d323c
change-id: 20250625-mcast-querier-vlan-lib-6276724b6119

Best regards,
-- 
Fabian Pfitzner <f.pfitzner@pengutronix.de>


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

end of thread, other threads:[~2025-07-02 14:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-25  8:39 [PATCH iproute2-next v6 0/3] bridge: dump mcast querier state per vlan Fabian Pfitzner
2025-06-25  8:39 ` [PATCH iproute2-next v6 1/3] bridge: move mcast querier dumping code into a shared function Fabian Pfitzner
2025-06-25  8:39 ` [PATCH iproute2-next v6 2/3] bridge: dump mcast querier per vlan Fabian Pfitzner
2025-06-25  8:39 ` [PATCH iproute2-next v6 3/3] bridge: refactor bridge mcast querier function Fabian Pfitzner
2025-07-02 14:40 ` [PATCH iproute2-next v6 0/3] bridge: dump mcast querier state per vlan patchwork-bot+netdevbpf

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.