linux/tools/net/ynl/lib
Jakub Kicinski b6c65eb20f tools: ynl: fix handling of multiple mcast groups
We never increment the group number iterator, so all groups
get recorded into index 0 of the mcast_groups[] array.

As a result YNL can only handle using the last group.
For example using the "netdev" sample on kernel with
page pool commands results in:

  $ ./samples/netdev
  YNL: Multicast group 'mgmt' not found

Most families have only one multicast group, so this hasn't
been noticed. Plus perhaps developers usually test the last
group which would have worked.

Fixes: 86878f14d7 ("tools: ynl: user space helpers")
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://lore.kernel.org/r/20240226214019.1255242-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-02-28 15:24:34 -08:00
..
.gitignore
__init__.py tools/net/ynl: Add support for create flags 2023-08-27 17:17:10 -07:00
Makefile
nlspec.py tools/net/ynl: Add 'sub-message' attribute decoding to ynl 2023-12-18 14:39:43 -08:00
ynl-priv.h tools: ynl: move private definitions to a separate header 2023-12-05 20:08:33 -08:00
ynl.c tools: ynl: fix handling of multiple mcast groups 2024-02-28 15:24:34 -08:00
ynl.h tools: ynl-gen: support fixed headers in genetlink 2023-12-14 17:51:21 -08:00
ynl.py tools/net/ynl: Add binary and pad support to structs for tc 2023-12-18 14:39:43 -08:00