[Intel-wired-lan] [PATCH] ice: Change req_speeds to be u16

Bowers, AndrewX andrewx.bowers at intel.com
Tue Nov 6 00:43:34 UTC 2018


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Anirudh Venkataramanan
> Sent: Monday, November 5, 2018 12:19 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH] ice: Change req_speeds to be u16
> 
> From: Chinh T Cao <chinh.t.cao at intel.com>
> 
> Since the req_speeds field in struct ice_link_status is a u8, req_speeds &
> ICE_AQ_LINK_SPEED_40GB always returns 0. This was caught by a coverity
> scan.
> 
> Fix this by changing req_speeds to be u16.
> 
> Reported-by: Bruce Allan <bruce.w.allan at intel.com>
> Signed-off-by: Chinh T Cao <chinh.t.cao at intel.com>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
> [Anirudh Venkataramanan <anirudh.venkataramanan at intel.com> rewrote
> commit message]
> ---
>  drivers/net/ethernet/intel/ice/ice_type.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list