linux/net/devlink
Jakub Kicinski d772781964 devlink: bump the instance index directly when iterating
xa_find_after() is designed to handle multi-index entries correctly.
If a xarray has two entries one which spans indexes 0-3 and one at
index 4 xa_find_after(0) will return the entry at index 4.

Having to juggle the two callbacks, however, is unnecessary in case
of the devlink xarray, as there is 1:1 relationship with indexes.

Always use xa_find() and increment the index manually.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-01-06 12:56:18 +00:00
..
core.c devlink: bump the instance index directly when iterating 2023-01-06 12:56:18 +00:00
devl_internal.h devlink: bump the instance index directly when iterating 2023-01-06 12:56:18 +00:00
leftover.c devlink: convert remaining dumps to the by-instance scheme 2023-01-05 22:13:40 -08:00
Makefile devlink: split out netlink code 2023-01-05 22:13:39 -08:00
netlink.c devlink: convert remaining dumps to the by-instance scheme 2023-01-05 22:13:40 -08:00