Skip to content

Commit bd98c62

Browse files
Nikolay Aleksandrovanguy11
authored andcommitted
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: c24a65b ("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>
1 parent 73aefba commit bd98c62

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/net/ethernet/intel/ice/devlink/devlink.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ ice_devlink_enable_roce_get(struct devlink *devlink, u32 id,
13601360

13611361
cdev = pf->cdev_info;
13621362
if (!cdev)
1363-
return -ENODEV;
1363+
return -EOPNOTSUPP;
13641364

13651365
ctx->val.vbool = !!(cdev->rdma_protocol & IIDC_RDMA_PROTOCOL_ROCEV2);
13661366

@@ -1427,7 +1427,7 @@ ice_devlink_enable_iw_get(struct devlink *devlink, u32 id,
14271427

14281428
cdev = pf->cdev_info;
14291429
if (!cdev)
1430-
return -ENODEV;
1430+
return -EOPNOTSUPP;
14311431

14321432
ctx->val.vbool = !!(cdev->rdma_protocol & IIDC_RDMA_PROTOCOL_IWARP);
14331433

0 commit comments

Comments
 (0)