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:
|
||
|---|---|---|
| .. | ||
| generated | ||
| lib | ||
| samples | ||
| Makefile | ||
| Makefile.deps | ||
| cli.py | ||
| ethtool.py | ||
| requirements.txt | ||
| ynl-gen-c.py | ||
| ynl-gen-rst.py | ||
| ynl-regen.sh | ||