devlink: use devl_is_registered() helper instead xa_get_mark()
authorJiri Pirko <jiri@nvidia.com>
Sat, 16 Dec 2023 12:29:53 +0000 (13:29 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 19 Dec 2023 14:31:40 +0000 (15:31 +0100)
commit337ad364c48a0db7cedb5abb8d5e9163792fd596
tree542150c02d8a889eafe5ae6e06aa931be56b8c46
parentf7dd48ea76be30666f0614d6a06061185ed38c60
devlink: use devl_is_registered() helper instead xa_get_mark()

Instead of checking the xarray mark directly using xa_get_mark() helper
use devl_is_registered() helper which wraps it up. Note that there are
couple more users of xa_get_mark() left which are going to be handled
by the next patch.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/devlink/dev.c
net/devlink/rate.c
net/devlink/trap.c