Skip to contentSkip to conversation

drivers: net: ice: fix devlink parameters get without irdma

PATCH In review Nikolay Aleksandrov 6 participants 6 messages Feb 13 – Mar 6

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/net/ethernet/intel/ice/devlink/devlink.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/ice/devlink/devlink.c +2 -2
index 2ef39cc70c21..7de749d3f047 100644
@@ -1360,7 +1360,7 @@ ice_devlink_enable_roce_get(struct devlink *devlink, u32 id,
 
 	cdev = pf->cdev_info;
 	if (!cdev)
-		return -ENODEV;
+		return -EOPNOTSUPP;
 
 	ctx->val.vbool = !!(cdev->rdma_protocol & IIDC_RDMA_PROTOCOL_ROCEV2);
 
@@ -1427,7 +1427,7 @@ ice_devlink_enable_iw_get(struct devlink *devlink, u32 id,
 
 	cdev = pf->cdev_info;
 	if (!cdev)
-		return -ENODEV;
+		return -EOPNOTSUPP;
 
 	ctx->val.vbool = !!(cdev->rdma_protocol & IIDC_RDMA_PROTOCOL_IWARP);
 
Signature · 1 line
2.47.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 72 lines

-----Original Message-----
From: Nikolay Aleksandrov <[email protected]>
Sent: Friday, February 13, 2026 9:49 AM
To: [email protected]
Cc: David Ahern <[email protected]>; Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw <[email protected]>; Andrew Lunn <[email protected]>; [email protected]; Eric Dumazet <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>; Loktionov, Aleksandr <[email protected]>; Greenwalt, Paul <[email protected]>; Daniel Zahka <[email protected]>; Michal Swiatkowski <[email protected]>; Ertman, David M <[email protected]>; Mustafa Ismail <[email protected]>; Shiraz Saleem <[email protected]>; Nikolova, Tatyana E <[email protected]>; intel-wired- [email protected]; Nikolay Aleksandrov <[email protected]>
Subject: [PATCH net] 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")

---
 drivers/net/ethernet/intel/ice/devlink/devlink.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/ice/devlink/devlink.c +1 -1
index 2ef39cc70c21..7de749d3f047 100644
@@ -1360,7 +1360,7 @@ ice_devlink_enable_roce_get(struct devlink
 *devlink, u32 id,
 
 	cdev = pf->cdev_info;
 	if (!cdev)
-		return -ENODEV;
+		return -EOPNOTSUPP;
 
 	ctx->val.vbool = !!(cdev->rdma_protocol &

IIDC_RDMA_PROTOCOL_ROCEV2);

drivers/net/ethernet/intel/ice/devlink/devlink.c +1 -1
@@ -1427,7 +1427,7 @@ ice_devlink_enable_iw_get(struct devlink
 *devlink, u32 id,
 
 	cdev = pf->cdev_info;
 	if (!cdev)
-		return -ENODEV;
+		return -EOPNOTSUPP;
 
 	ctx->val.vbool = !!(cdev->rdma_protocol &

IIDC_RDMA_PROTOCOL_IWARP);

Quoted 2 lines

--
2.47.3

maintainer Reviewed-by Tested-by on v1 1/1
#2 lore raw
In reply to Nikolay Aleksandrov
Quoted 12 lines · Nikolay Aleksandrov

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

this issue reproduces even with CONFIG_IRDMA enabled, but just when there is no irdma in use, so the fix helps a lot

Quoted 32 lines

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")
---
  drivers/net/ethernet/intel/ice/devlink/devlink.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/ice/devlink/devlink.c +2 -2
index 2ef39cc70c21..7de749d3f047 100644
@@ -1360,7 +1360,7 @@ ice_devlink_enable_roce_get(struct devlink *devlink, u32 id,
 
  	cdev = pf->cdev_info;
  	if (!cdev)
-		return -ENODEV;
+		return -EOPNOTSUPP;
 
  	ctx->val.vbool = !!(cdev->rdma_protocol & IIDC_RDMA_PROTOCOL_ROCEV2);
 
@@ -1427,7 +1427,7 @@ ice_devlink_enable_iw_get(struct devlink *devlink, u32 id,
 
  	cdev = pf->cdev_info;
  	if (!cdev)
-		return -ENODEV;
+		return -EOPNOTSUPP;
 
  	ctx->val.vbool = !!(cdev->rdma_protocol & IIDC_RDMA_PROTOCOL_IWARP);
 
#3 lore raw
In reply to Nikolay Aleksandrov
Quoted 13 lines · Nikolay Aleksandrov

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
Quoted 9 lines

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")
---
 drivers/net/ethernet/intel/ice/devlink/devlink.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

This patch was marked as awaiting upstream; I wanted to confirm it is in Intel's queue or was the expectation for netdev maintainer's to pick it up?

#4 lore raw
Quoted 24 lines · David Ahern
Quoted 13 lines · Nikolay Aleksandrov

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
Quoted 9 lines

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")
---
 drivers/net/ethernet/intel/ice/devlink/devlink.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 2 lines

This patch was marked as awaiting upstream; I wanted to confirm it is in Intel's queue or was the expectation for netdev maintainer's to pick it up?

I see it's in Intel's queue.

https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue.git/log/?h=dev-queue

Tested-by on v1 1/1
#5 lore raw
In reply to Nikolay Aleksandrov
Quoted 18 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Nikolay Aleksandrov via Intel-wired-lan
Sent: 13 February 2026 14:19
To: [email protected]
Cc: David Ahern <[email protected]>; Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw <[email protected]>; Andrew Lunn <[email protected]>; [email protected]; Eric Dumazet <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>; Loktionov, Aleksandr <[email protected]>; Greenwalt, Paul <[email protected]>; Daniel Zahka <[email protected]>; Michal Swiatkowski <[email protected]>; Ertman, David M <[email protected]>; Mustafa Ismail <[email protected]>; Shiraz Saleem <[email protected]>; Nikolova, Tatyana E <[email protected]>; [email protected]; Nikolay Aleksandrov <[email protected]>
Subject: [Intel-wired-lan] [PATCH net] 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
Quoted 9 lines

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")

---
drivers/net/ethernet/intel/ice/devlink/devlink.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)