lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 8 Jun 2014 19:06:57 +0000
From:	"Williams, Mitch A" <mitch.a.williams@...el.com>
To:	Joe Perches <joe@...ches.com>,
	"Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>
CC:	"davem@...emloft.net" <davem@...emloft.net>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"gospo@...hat.com" <gospo@...hat.com>,
	"sassmann@...hat.com" <sassmann@...hat.com>
Subject: RE: [net-next 11/15] i40e/i40evf: remove chatty reset messages



> -----Original Message-----
> From: Joe Perches [mailto:joe@...ches.com]
> Sent: Sunday, June 08, 2014 10:34 AM
> To: Kirsher, Jeffrey T
> Cc: davem@...emloft.net; Williams, Mitch A; netdev@...r.kernel.org;
> gospo@...hat.com; sassmann@...hat.com
> Subject: Re: [net-next 11/15] i40e/i40evf: remove chatty reset messages
> 
> On Sun, 2014-06-08 at 07:33 -0700, Jeff Kirsher wrote:
> > Because some of these message are inside if statements, we have to
> > rejigger the brackets at the same time to keep our coding style
> > consistent.
> 
> trivia:
> 
> > diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c
> b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
> []
> > @@ -1503,12 +1500,10 @@ static void i40evf_reset_task(struct work_struct
> *work)
> >  	for (i = 0; i < I40EVF_RESET_WAIT_COUNT; i++) {
> >  		rstat_val = rd32(hw, I40E_VFGEN_RSTAT) &
> >  			    I40E_VFGEN_RSTAT_VFR_STATE_MASK;
> > -		if (rstat_val == I40E_VFR_VFACTIVE) {
> > -			dev_info(&adapter->pdev->dev, "Reset complete,
> reinitializing\n");
> > +		if (rstat_val == I40E_VFR_VFACTIVE)
> >  			break;
> > -		} else {
> > +		else
> >  			msleep(I40EVF_RESET_WAIT_MS);
> > -		}
> >  	}
> >  	if (i == I40EVF_RESET_WAIT_COUNT) {
> >  		/* reset never finished */
> 
> Unnecessary else, maybe simpler as
> 
>  	for (i = 0; i < I40EVF_RESET_WAIT_COUNT; i++) {
> 		rstat_val = rd32(hw, I40E_VFGEN_RSTAT) &
> 			    I40E_VFGEN_RSTAT_VFR_STATE_MASK;
> 		if (rstat_val == I40E_VFR_VFACTIVE)
> 			break;
> 		msleep(I40EVF_RESET_WAIT_MS);
> 	}
> 

Thanks for your comments on these patches, Joe. I'm heading out for a three week vacation effective immediately, so I won't be getting to these comments right away. But "driver cleanup", including all of this stuff is on the top of my to-do list for when I get back.

-Mitch
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ