public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] drivers: net: ice: fix devlink parameters get without irdma
@ 2026-02-13  8:48 Nikolay Aleksandrov
  2026-02-13  9:15 ` Loktionov, Aleksandr
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Nikolay Aleksandrov @ 2026-02-13  8:48 UTC (permalink / raw)
  To: netdev
  Cc: David Ahern, Tony Nguyen, Przemek Kitszel, Andrew Lunn, davem,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Aleksandr Loktionov,
	Paul Greenwalt, Daniel Zahka, Michal Swiatkowski, Dave Ertman,
	Mustafa Ismail, Shiraz Saleem, Tatyana Nikolova, intel-wired-lan,
	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

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

diff --git a/drivers/net/ethernet/intel/ice/devlink/devlink.c b/drivers/net/ethernet/intel/ice/devlink/devlink.c
index 2ef39cc70c21..7de749d3f047 100644
--- a/drivers/net/ethernet/intel/ice/devlink/devlink.c
+++ b/drivers/net/ethernet/intel/ice/devlink/devlink.c
@@ -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);
 
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-03-06 10:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-13  8:48 [PATCH net] drivers: net: ice: fix devlink parameters get without irdma Nikolay Aleksandrov
2026-02-13  9:15 ` Loktionov, Aleksandr
2026-02-13 10:37 ` Przemek Kitszel
2026-02-22 18:27 ` David Ahern
2026-02-22 19:20   ` Kohei Enju
2026-03-06 10:05 ` [Intel-wired-lan] " Rinitha, SX

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox