xdp: Remove usage of the deprecated ida_simple_xx() API
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 20 Jan 2024 07:02:20 +0000 (08:02 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 31 Jan 2024 01:51:01 +0000 (17:51 -0800)
commit6a571895116e688b2f54990cc537634337990b08
tree65eef0d84b00211959f2e8121c07b19c7046c6e8
parent047a7d261be652e0a8c756ac75936cc0dc537fc6
xdp: Remove usage of the deprecated ida_simple_xx() API

ida_alloc() and ida_free() should be preferred to the deprecated
ida_simple_get() and ida_simple_remove().

Note that the upper limit of ida_simple_get() is exclusive, but the one of
ida_alloc_range() is inclusive. So a -1 has been added when needed.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/8e889d18a6c881b09db4650d4b30a62d76f4fe77.1705734073.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/xdp.c