netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>,
	dledford@redhat.com, linux-rdma@vger.kernel.org,
	leonro@nvidia.com, davem@davemloft.net,
	Dave Ertman <david.m.ertman@intel.com>,
	netdev@vger.kernel.org, shiraz.saleem@intel.com
Subject: Re: [PATCH net-next v2 4/7] ice: Implement iidc operations
Date: Fri, 28 May 2021 10:02:12 -0300	[thread overview]
Message-ID: <20210528130212.GL1002214@nvidia.com> (raw)
In-Reply-To: <20210527171241.3b886692@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net>

On Thu, May 27, 2021 at 05:12:41PM -0700, Jakub Kicinski wrote:
> On Thu, 27 May 2021 10:30:11 -0700 Tony Nguyen wrote:
> > +static enum ice_status
> > +ice_aq_add_rdma_qsets(struct ice_hw *hw, u8 num_qset_grps,
> > +		      struct ice_aqc_add_rdma_qset_data *qset_list,
> > +		      u16 buf_size, struct ice_sq_cd *cd)
> > +{
> > +	struct ice_aqc_add_rdma_qset_data *list;
> > +	struct ice_aqc_add_rdma_qset *cmd;
> > +	struct ice_aq_desc desc;
> > +	u16 i, sum_size = 0;
> > +
> > +	cmd = &desc.params.add_rdma_qset;
> > +
> > +	ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_add_rdma_qset);
> > +
> > +	if (!qset_list)
> 
> defensive programming
> 
> > +		return ICE_ERR_PARAM;
> 
> RDMA folks, are you okay with drivers inventing their own error
> codes?

Not really, I was ignoring it because it looks like big part of their
netdev driver layer.

> Having had to make tree-wide changes and deal with this cruft in 
> the past I've developed a strong dislike for it. But if you're okay
> I guess it can stay, these are RDMA functions after all.

I don't think it is a "RDMA" issue:

$ git grep ICE_ERR_PARAM | wc -l
168
$ git grep -l ICE_ERR_PARAM
drivers/net/ethernet/intel/ice/ice_common.c
drivers/net/ethernet/intel/ice/ice_controlq.c
drivers/net/ethernet/intel/ice/ice_dcb.c
drivers/net/ethernet/intel/ice/ice_fdir.c
drivers/net/ethernet/intel/ice/ice_flex_pipe.c
drivers/net/ethernet/intel/ice/ice_flow.c
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_nvm.c
drivers/net/ethernet/intel/ice/ice_sched.c
drivers/net/ethernet/intel/ice/ice_sriov.c
drivers/net/ethernet/intel/ice/ice_status.h
drivers/net/ethernet/intel/ice/ice_switch.c
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c

Jason

  reply	other threads:[~2021-05-28 13:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-27 17:30 [PATCH net-next v2 0/7][pull request] iwl-next Intel Wired LAN Driver Updates 2021-05-27 Tony Nguyen
2021-05-27 17:30 ` [PATCH net-next v2 1/7] i40e: Replace one-element array with flexible-array member Tony Nguyen
2021-05-27 17:30 ` [PATCH net-next v2 2/7] iidc: Introduce iidc.h Tony Nguyen
2021-05-27 17:30 ` [PATCH net-next v2 3/7] ice: Initialize RDMA support Tony Nguyen
2021-05-27 17:30 ` [PATCH net-next v2 4/7] ice: Implement iidc operations Tony Nguyen
2021-05-28  0:12   ` Jakub Kicinski
2021-05-28 13:02     ` Jason Gunthorpe [this message]
2021-05-28 16:48       ` Nguyen, Anthony L
2021-05-28 19:29         ` Jakub Kicinski
2021-05-27 17:30 ` [PATCH net-next v2 5/7] ice: Register auxiliary device to provide RDMA Tony Nguyen
2021-05-27 17:30 ` [PATCH net-next v2 6/7] i40e: Prep i40e header for aux bus conversion Tony Nguyen
2021-05-27 17:30 ` [PATCH net-next v2 7/7] i40e: Register auxiliary devices to provide RDMA Tony Nguyen

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=20210528130212.GL1002214@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=anthony.l.nguyen@intel.com \
    --cc=davem@davemloft.net \
    --cc=david.m.ertman@intel.com \
    --cc=dledford@redhat.com \
    --cc=kuba@kernel.org \
    --cc=leonro@nvidia.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=shiraz.saleem@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).