From: James Smart <james.smart@emulex.com>
To: Daniel Borkmann <dborkman@redhat.com>
Cc: <davem@davemloft.net>, <netdev@vger.kernel.org>,
James Bottomley <JBottomley@Parallels.com>,
"Smart, James" <James.Smart@Emulex.Com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH net-next 2/2] random32: do not feed jiffies as seed from lpfc driver
Date: Mon, 11 Aug 2014 13:07:15 -0400 [thread overview]
Message-ID: <282a2dc3-6381-42d6-ac34-81ceb56f1534@CMEXHTCAS2.ad.emulex.com> (raw)
In-Reply-To: <1406837317-13648-1-git-send-email-dborkman@redhat.com>
Acked-by: James Smart <james.smart@emulex.com>
-- james s
On 7/31/2014 4:08 PM, Daniel Borkmann wrote:
> In prandom we have already reseeding mechanisms that trigger
> periodically from a much better entropy source than just
> feeding in jiffies through lpfc_mbx_cmpl_fcf_scan_read_fcf_rec()
> [what a function name 8-)]. Therefore, just remove this.
>
> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
> Cc: James Bottomley <JBottomley@Parallels.com>
> Cc: James Smart <james.smart@emulex.com>
> ---
> This can also go via James, how you prefer it.
>
> drivers/scsi/lpfc/lpfc_hbadisc.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
> index 2a17e31..5072bb2 100644
> --- a/drivers/scsi/lpfc/lpfc_hbadisc.c
> +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
> @@ -2146,7 +2146,6 @@ lpfc_mbx_cmpl_fcf_scan_read_fcf_rec(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq)
> uint16_t fcf_index, next_fcf_index;
> struct lpfc_fcf_rec *fcf_rec = NULL;
> uint16_t vlan_id;
> - uint32_t seed;
> bool select_new_fcf;
> int rc;
>
> @@ -2383,9 +2382,6 @@ lpfc_mbx_cmpl_fcf_scan_read_fcf_rec(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq)
> phba->fcf.fcf_flag |= FCF_AVAILABLE;
> /* Setup initial running random FCF selection count */
> phba->fcf.eligible_fcf_cnt = 1;
> - /* Seeding the random number generator for random selection */
> - seed = (uint32_t)(0xFFFFFFFF & jiffies);
> - prandom_seed(seed);
> }
> spin_unlock_irq(&phba->hbalock);
> goto read_next_fcf;
next prev parent reply other threads:[~2014-08-11 17:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-31 20:08 [PATCH net-next 2/2] random32: do not feed jiffies as seed from lpfc driver Daniel Borkmann
2014-07-31 20:11 ` David Miller
2014-08-01 4:12 ` James Bottomley
2014-08-01 11:23 ` Daniel Borkmann
2014-08-11 17:07 ` James Smart [this message]
2014-08-11 18:18 ` Christoph Hellwig
2014-08-11 18:38 ` James Smart
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=282a2dc3-6381-42d6-ac34-81ceb56f1534@CMEXHTCAS2.ad.emulex.com \
--to=james.smart@emulex.com \
--cc=JBottomley@Parallels.com \
--cc=davem@davemloft.net \
--cc=dborkman@redhat.com \
--cc=linux-scsi@vger.kernel.org \
--cc=netdev@vger.kernel.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 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).