linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Smart <james.smart@emulex.com>
To: Tomas Henzl <thenzl@redhat.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH 07/21] lpfc: Fix setting of EQ delay Multiplier
Date: Mon, 16 Feb 2015 11:19:36 -0500	[thread overview]
Message-ID: <54E21898.3090509@emulex.com> (raw)
In-Reply-To: <54D4B129.6000202@redhat.com>

Tomas,

This one I'm going to leave as is.  bf_set is a macro and I'd prefer we 
kept the variable with a real data type and not be subject to any 
compiler-based type conversions in the equations.  I'd rather not risk 
any disruption to the macro to add all the paren'd type declarations.

-- james


On 2/6/2015 7:18 AM, Tomas Henzl wrote:
> @@ -12959,11 +12959,8 @@ lpfc_eq_create(struct lpfc_hba *phba, struct lpfc_queue *eq, uint32_t imax)
>   	bf_set(lpfc_eq_context_size, &eq_create->u.request.context,
>   	       LPFC_EQE_SIZE);
>   	bf_set(lpfc_eq_context_valid, &eq_create->u.request.context, 1);
> -	/* Calculate delay multiper from maximum interrupt per second */
> -	if (imax > LPFC_DMULT_CONST)
> -		dmult = 0;
> -	else
> -		dmult = LPFC_DMULT_CONST/imax - 1;
> +	/* don't setup delay multiplier using EQ_CREATE */
> +	dmult = 0;
>   	bf_set(lpfc_eq_context_delay_multi, &eq_create->u.request.context,
>   	       dmult);
> This is the only use of 'dmult' in this function, please remove the variable completely
> and use this instead - 	bf_set(lpfc_eq_context_delay_multi, &eq_create->u.request.context, 0);
> Thanks, Tomas
>
>


      reply	other threads:[~2015-02-16 16:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-05 19:24 [PATCH 07/21] lpfc: Fix setting of EQ delay Multiplier James Smart
2015-02-06 12:18 ` Tomas Henzl
2015-02-16 16:19   ` James Smart [this message]

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=54E21898.3090509@emulex.com \
    --to=james.smart@emulex.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=thenzl@redhat.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).