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] [day] [month] [year] [list]
Message-Id: <20140414.135355.1089731200551193712.davem@davemloft.net>
Date:	Mon, 14 Apr 2014 13:53:55 -0400 (EDT)
From:	David Miller <davem@...emloft.net>
To:	ecree@...arflare.com
Cc:	sshah@...arflare.com, netdev@...r.kernel.org,
	linux-net-drivers@...arflare.com, rstonehouse@...arflare.com
Subject: Re: [PATCH net] sfc:On MCDI timeout, issue an FLR (and mark MCDI
 to fail-fast)

From: Edward Cree <ecree@...arflare.com>
Date: Mon, 14 Apr 2014 16:02:54 +0100

> On 14/04/14 15:41, Shradha Shah wrote:
>> diff --git a/drivers/net/ethernet/sfc/enum.h b/drivers/net/ethernet/sfc/enum.h
>> index 75ef7ef..70c2473 100644
>> --- a/drivers/net/ethernet/sfc/enum.h
>> +++ b/drivers/net/ethernet/sfc/enum.h
>> @@ -165,7 +168,14 @@ enum reset_type {
>>  	RESET_TYPE_DMA_ERROR,
>>  	RESET_TYPE_TX_SKIP,
>>  	RESET_TYPE_MC_FAILURE,
>> -	RESET_TYPE_MC_BIST,
>> +	/* RESET_TYPE_MC_BIST and RESET_TYPE_MCDI_TIMEOUT are actually methods,
>> +	 * not just reasons, but they don't fit the scope hierarchy (they're
>> +	 * not well-ordered by inclusion)
>> +	 * We encode this by having their enum values be greater than
>> +	 * RESET_TYPE_MAX_METHOD.  This also prevents issuing them with
>> +	 * efx_ioctl_reset
>> +	 */
>> +	RESET_TYPE_MCDI_TIMEOUT,
>>  	RESET_TYPE_MAX,
>>  };
>>  
> Looks like I messed up this comment; this is only true of
> RESET_TYPE_MCDI_TIMEOUT, not RESET_TYPE_MC_BIST.
> So should be something like:
> 
>     /* RESET_TYPE_MCDI_TIMEOUT is actually a method, not just a reason, but
>     * it doesn't fit the scope hierarchy (not well-ordered by inclusion).
>     * We encode this by having its enum value be greater than
>     * RESET_TYPE_MAX_METHOD. This also prevents issuing it with
>     * efx_ioctl_reset.
>     */

Please resubmit with the comment fixed.
--
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