All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Perches <joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
To: Faisal Latif
	<faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	jeffrey.t.kirsher-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	e1000-rdma-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH 02/15] i40iw: add main, hdr, status
Date: Wed, 16 Dec 2015 12:31:13 -0800	[thread overview]
Message-ID: <1450297873.24782.7.camel@perches.com> (raw)
In-Reply-To: <1450295919-17292-3-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

On Wed, 2015-12-16 at 13:58 -0600, Faisal Latif wrote:
> i40iw_main.c contains routines for i40e <=> i40iw interface and setup.
> i40iw.h is header file for main device data structures.
> i40iw_status.h is for return status codes.
[]
> diff --git a/drivers/infiniband/hw/i40iw/i40iw.h b/drivers/infiniband/hw/i40iw/i40iw.h
[]
> +#define i40iw_pr_err(fmt, args ...) pr_err("%s: error " fmt, __func__, ## args)
> +
> +#define i40iw_pr_info(fmt, args ...) pr_info("%s: " fmt, __func__, ## args)
> +
> +#define i40iw_pr_warn(fmt, args ...) pr_warn("%s: " fmt, __func__, ## args)

Using "error " in the output doesn't really add much
as there's already a KERN_ERR with the output.

Using __func__ hardly adds anything.

Using netdev_<level> is generally preferred

> +
> +struct i40iw_cqp_request {
> +	struct cqp_commands_info info;
> +	wait_queue_head_t waitq;
> +	struct list_head list;
> +	atomic_t refcount;
> +	void (*callback_fcn)(struct i40iw_cqp_request*, u32);
> +	void *param;
> +	struct i40iw_cqp_compl_info compl_info;
> +	u8 waiting:1;
> +	u8 request_done:1;
> +	u8 dynamic:1;
> +	u8 polling:1;

These would bitfields might be better as bool

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2015-12-16 20:31 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-16 19:58 [PATCH 00/15] add Intel(R) X722 iWARP driver Faisal Latif
2015-12-16 19:58 ` [PATCH 01/15] i40e: Add support for client interface for IWARP driver Faisal Latif
2015-12-16 19:58   ` [PATCH 02/15] i40iw: add main, hdr, status Faisal Latif
2015-12-16 19:58     ` [PATCH 03/15] i40iw: add connection management code Faisal Latif
     [not found]       ` <1450295919-17292-4-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-16 19:58         ` [PATCH 04/15] i40iw: add puda code Faisal Latif
2015-12-16 19:58           ` [PATCH 05/15] i40iw: add pble resource files Faisal Latif
     [not found]             ` <1450295919-17292-6-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-16 19:58               ` [PATCH 06/15] i40iw: add hmc " Faisal Latif
     [not found]                 ` <1450295919-17292-7-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-16 19:58                   ` [PATCH 07/15] i40iw: add hw and utils files Faisal Latif
     [not found]                     ` <1450295919-17292-8-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-16 19:58                       ` [PATCH 08/15] i40iw: add files for iwarp interface Faisal Latif
2015-12-16 19:58                         ` [PATCH 09/15] i40iw: add file to handle cqp calls Faisal Latif
2015-12-16 19:58                           ` [PATCH 10/15] i40iw: add hardware related header files Faisal Latif
2015-12-16 19:58                             ` [PATCH 11/15] i40iw: add X722 register file Faisal Latif
2015-12-16 19:58                               ` [PATCH 12/15] i40iw: user kernel shared files Faisal Latif
2015-12-16 19:58                                 ` [PATCH 13/15] i40iw: virtual channel handling files Faisal Latif
2015-12-16 19:58                                   ` [PATCH 14/15] i40iw: Kconfig and Kbuild for iwarp module Faisal Latif
2015-12-16 19:58                                     ` [PATCH 15/15] i40iw: changes for build of i40iw module Faisal Latif
     [not found]                                       ` <1450295919-17292-16-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-16 20:34                                         ` kbuild test robot
2015-12-16 20:34                                           ` kbuild test robot
2015-12-16 20:53                                         ` Christoph Hellwig
2015-12-17  5:14                                         ` kbuild test robot
2015-12-17  5:14                                           ` kbuild test robot
2015-12-17 16:27                         ` [PATCH 08/15] i40iw: add files for iwarp interface Christoph Hellwig
2015-12-17 16:07                       ` [PATCH 07/15] i40iw: add hw and utils files Christoph Hellwig
     [not found]     ` <1450295919-17292-3-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-16 20:31       ` Joe Perches [this message]
2015-12-16 20:26   ` [PATCH 01/15] i40e: Add support for client interface for IWARP driver Joe Perches
     [not found] ` <1450295919-17292-1-git-send-email-faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-12-16 21:27   ` [PATCH 00/15] add Intel(R) X722 iWARP driver Joe Perches

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=1450297873.24782.7.camel@perches.com \
    --to=joe-6d6dil74uinbdgjk7y7tuq@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=e1000-rdma-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=jeffrey.t.kirsher-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.