net: ethtool: record custom RSS contexts in the XArray
authorEdward Cree <ecree.xilinx@gmail.com>
Thu, 27 Jun 2024 15:33:48 +0000 (16:33 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Jun 2024 01:53:21 +0000 (18:53 -0700)
commiteac9122f0c41b832065e01977c34946ec8e76c24
tree971a86da2e6a7aa174b3191caa011015aff2f729
parent6ad2962f8adfd53fca52dce7f830783e95d99ce7
net: ethtool: record custom RSS contexts in the XArray

Since drivers are still choosing the context IDs, we have to force the
 XArray to use the ID they've chosen rather than picking one ourselves,
 and handle the case where they give us an ID that's already in use.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://patch.msgid.link/801f5faa4cec87c65b2c6e27fb220c944bce593a.1719502240.git.ecree.xilinx@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ethtool.h
net/ethtool/ioctl.c