]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drivers: net: ice: fix devlink parameters get without irdma
authorNikolay Aleksandrov <nikolay@nvidia.com>
Fri, 13 Feb 2026 08:48:41 +0000 (10:48 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 10 Mar 2026 16:08:31 +0000 (09:08 -0700)
commitbd98c6204d1195973b1760fe45860863deb6200c
treeb7cd6c596801b94789327c143c18d6ae2539f48c
parent73aefba4e2eb713cf7bc4ad83cfc9b5d4f966f6d
drivers: net: ice: fix devlink parameters get without irdma

If CONFIG_IRDMA isn't enabled but there are ice NICs in the system, the
driver will prevent full devlink dev param show dump because its rdma get
callbacks return ENODEV and stop the dump. For example:
 $ devlink dev param show
 pci/0000:82:00.0:
   name msix_vec_per_pf_max type generic
     values:
       cmode driverinit value 2
   name msix_vec_per_pf_min type generic
     values:
       cmode driverinit value 2
 kernel answers: No such device

Returning EOPNOTSUPP allows the dump to continue so we can see all devices'
devlink parameters.

Fixes: c24a65b6a27c ("iidc/ice/irdma: Update IDC to support multiple consumers")
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/devlink/devlink.c