From: Simon Horman <horms@kernel.org>
To: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Cc: jgg@nvidia.com, leon@kernel.org,
intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org,
netdev@vger.kernel.org
Subject: Re: [iwl-next v5 5/5] iidc/ice/irdma: Update IDC to support multiple consumers
Date: Thu, 17 Apr 2025 12:21:43 +0100 [thread overview]
Message-ID: <20250417112143.GE2430521@horms.kernel.org> (raw)
In-Reply-To: <20250416021549.606-6-tatyana.e.nikolova@intel.com>
On Tue, Apr 15, 2025 at 09:15:49PM -0500, Tatyana Nikolova wrote:
> From: Dave Ertman <david.m.ertman@intel.com>
>
> In preparation of supporting more than a single core PCI driver
> for RDMA, move ice specific structs like qset_params, qos_info
> and qos_params from iidc_rdma.h to iidc_rdma_ice.h.
>
> Previously, the ice driver was just exporting its entire PF struct
> to the auxiliary driver, but since each core driver will have its own
> different PF struct, implement a universal struct that all core drivers
> can provide to the auxiliary driver through the probe call.
>
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
> Co-developed-by: Mustafa Ismail <mustafa.ismail@intel.com>
> Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
> Co-developed-by: Shiraz Saleem <shiraz.saleem@intel.com>
> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
> Co-developed-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
> Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
...
> diff --git a/drivers/net/ethernet/intel/ice/devlink/devlink.c b/drivers/net/ethernet/intel/ice/devlink/devlink.c
> index fcb199efbea5..4af60e2f37df 100644
> --- a/drivers/net/ethernet/intel/ice/devlink/devlink.c
> +++ b/drivers/net/ethernet/intel/ice/devlink/devlink.c
> @@ -1339,8 +1339,13 @@ ice_devlink_enable_roce_get(struct devlink *devlink, u32 id,
> struct devlink_param_gset_ctx *ctx)
> {
> struct ice_pf *pf = devlink_priv(devlink);
> + struct iidc_rdma_core_dev_info *cdev;
>
> - ctx->val.vbool = pf->rdma_mode & IIDC_RDMA_PROTOCOL_ROCEV2 ? true : false;
> + cdev = pf->cdev_info;
> + if (!cdev)
> + return -ENODEV;
Is it possible for cdev to be NULL here?
Likewise for other checks for NULL arguments passed to functions
elsewhere in this patch.
> +
> + ctx->val.vbool = !!(cdev->rdma_protocol & IIDC_RDMA_PROTOCOL_ROCEV2);
>
> return 0;
> }
...
next prev parent reply other threads:[~2025-04-17 11:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-16 2:15 [iwl-next v5 0/5] Refactor to prepare for Intel IPU E2000 (GEN3) Tatyana Nikolova
2025-04-16 2:15 ` [iwl-next v5 1/5] iidc/ice/irdma: Rename IDC header file Tatyana Nikolova
2025-04-16 2:15 ` [iwl-next v5 2/5] iidc/ice/irdma: Rename to iidc_* convention Tatyana Nikolova
2025-04-16 2:15 ` [iwl-next v5 3/5] iidc/ice/irdma: Break iidc.h into two headers Tatyana Nikolova
2025-04-16 2:15 ` [iwl-next v5 4/5] ice: Replace ice specific DSCP mapping num with a kernel define Tatyana Nikolova
2025-04-17 11:21 ` Simon Horman
2025-04-16 2:15 ` [iwl-next v5 5/5] iidc/ice/irdma: Update IDC to support multiple consumers Tatyana Nikolova
2025-04-17 11:21 ` Simon Horman [this message]
2025-04-18 17:14 ` [Intel-wired-lan] " Ertman, David M
2025-04-23 16:14 ` Simon Horman
2025-04-24 15:58 ` [iwl-next v5 0/5] Refactor to prepare for Intel IPU E2000 (GEN3) Nikolova, Tatyana E
2025-04-24 21:51 ` Jakub Kicinski
2025-04-28 20:29 ` Nikolova, Tatyana E
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250417112143.GE2430521@horms.kernel.org \
--to=horms@kernel.org \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jgg@nvidia.com \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=tatyana.e.nikolova@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).