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

* RE: [PATCH net] drivers: net: ice: fix devlink parameters get without irdma
  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
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Loktionov, Aleksandr @ 2026-02-13  9:15 UTC (permalink / raw)
  To: Nikolay Aleksandrov, netdev@vger.kernel.org
  Cc: David Ahern, Nguyen, Anthony L, Kitszel, Przemyslaw, Andrew Lunn,
	davem@davemloft.net, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Greenwalt, Paul, Daniel Zahka, Michal Swiatkowski,
	Ertman, David M, Mustafa Ismail, Shiraz Saleem,
	Nikolova, Tatyana E, intel-wired-lan@lists.osuosl.org



> -----Original Message-----
> From: Nikolay Aleksandrov <nikolay@nvidia.com>
> Sent: Friday, February 13, 2026 9:49 AM
> To: netdev@vger.kernel.org
> Cc: David Ahern <dsahern@kernel.org>; Nguyen, Anthony L
> <anthony.l.nguyen@intel.com>; Kitszel, Przemyslaw
> <przemyslaw.kitszel@intel.com>; Andrew Lunn <andrew+netdev@lunn.ch>;
> davem@davemloft.net; Eric Dumazet <edumazet@google.com>; Jakub
> Kicinski <kuba@kernel.org>; Paolo Abeni <pabeni@redhat.com>;
> Loktionov, Aleksandr <aleksandr.loktionov@intel.com>; Greenwalt, Paul
> <paul.greenwalt@intel.com>; Daniel Zahka <daniel.zahka@gmail.com>;
> Michal Swiatkowski <michal.swiatkowski@linux.intel.com>; Ertman, David
> M <david.m.ertman@intel.com>; Mustafa Ismail
> <mustafa.ismail@intel.com>; Shiraz Saleem <shiraz.saleem@intel.com>;
> Nikolova, Tatyana E <tatyana.e.nikolova@intel.com>; intel-wired-
> lan@lists.osuosl.org; Nikolay Aleksandrov <nikolay@nvidia.com>
> 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")
> 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

Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>

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

* Re: [PATCH net] drivers: net: ice: fix devlink parameters get without irdma
  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-03-06 10:05 ` [Intel-wired-lan] " Rinitha, SX
  3 siblings, 0 replies; 6+ messages in thread
From: Przemek Kitszel @ 2026-02-13 10:37 UTC (permalink / raw)
  To: Nikolay Aleksandrov, netdev
  Cc: David Ahern, Tony Nguyen, 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

On 2/13/26 09:48, Nikolay Aleksandrov wrote:
> 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

Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Tested-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>

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


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

* Re: [PATCH net] drivers: net: ice: fix devlink parameters get without irdma
  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
  3 siblings, 1 reply; 6+ messages in thread
From: David Ahern @ 2026-02-22 18:27 UTC (permalink / raw)
  To: Nikolay Aleksandrov, netdev
  Cc: 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

On 2/13/26 1:48 AM, Nikolay Aleksandrov wrote:
> 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(-)
> 

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?


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

* Re: [PATCH net] drivers: net: ice: fix devlink parameters get without irdma
  2026-02-22 18:27 ` David Ahern
@ 2026-02-22 19:20   ` Kohei Enju
  0 siblings, 0 replies; 6+ messages in thread
From: Kohei Enju @ 2026-02-22 19:20 UTC (permalink / raw)
  To: dsahern
  Cc: aleksandr.loktionov, andrew+netdev, anthony.l.nguyen,
	daniel.zahka, davem, david.m.ertman, edumazet, intel-wired-lan,
	kuba, michal.swiatkowski, mustafa.ismail, netdev, nikolay, pabeni,
	paul.greenwalt, przemyslaw.kitszel, shiraz.saleem,
	tatyana.e.nikolova

On Sun, 22 Feb 2026 11:27:30 -0700, David Ahern wrote:

> On 2/13/26 1:48 AM, Nikolay Aleksandrov wrote:
> > 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(-)
> > 
> 
> 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

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

* RE: [Intel-wired-lan] [PATCH net] drivers: net: ice: fix devlink parameters get without irdma
  2026-02-13  8:48 [PATCH net] drivers: net: ice: fix devlink parameters get without irdma Nikolay Aleksandrov
                   ` (2 preceding siblings ...)
  2026-02-22 18:27 ` David Ahern
@ 2026-03-06 10:05 ` Rinitha, SX
  3 siblings, 0 replies; 6+ messages in thread
From: Rinitha, SX @ 2026-03-06 10:05 UTC (permalink / raw)
  To: Nikolay Aleksandrov, netdev@vger.kernel.org
  Cc: David Ahern, Nguyen, Anthony L, Kitszel, Przemyslaw, Andrew Lunn,
	davem@davemloft.net, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Loktionov, Aleksandr, Greenwalt, Paul, Daniel Zahka,
	Michal Swiatkowski, Ertman, David M, Mustafa Ismail,
	Shiraz Saleem, Nikolova, Tatyana E,
	intel-wired-lan@lists.osuosl.org

> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of Nikolay Aleksandrov via Intel-wired-lan
> Sent: 13 February 2026 14:19
> To: netdev@vger.kernel.org
> Cc: David Ahern <dsahern@kernel.org>; Nguyen, Anthony L <anthony.l.nguyen@intel.com>; Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>; Andrew Lunn <andrew+netdev@lunn.ch>; davem@davemloft.net; Eric Dumazet <edumazet@google.com>; Jakub Kicinski <kuba@kernel.org>; Paolo Abeni <pabeni@redhat.com>; Loktionov, Aleksandr <aleksandr.loktionov@intel.com>; Greenwalt, Paul <paul.greenwalt@intel.com>; Daniel Zahka <daniel.zahka@gmail.com>; Michal Swiatkowski <michal.swiatkowski@linux.intel.com>; Ertman, David M <david.m.ertman@intel.com>; Mustafa Ismail <mustafa.ismail@intel.com>; Shiraz Saleem <shiraz.saleem@intel.com>; Nikolova, Tatyana E <tatyana.e.nikolova@intel.com>; intel-wired-lan@lists.osuosl.org; Nikolay Aleksandrov <nikolay@nvidia.com>
> 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
>
> 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(-)
>

Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)

^ permalink raw reply	[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