[dpdk-dev] [PATCH] net/i40e: fix shifts of 32-bit value
Zhang, Qi Z
qi.z.zhang at intel.com
Thu Jun 21 16:19:59 CEST 2018
> -----Original Message-----
> From: Xing, Beilei
> Sent: Wednesday, May 23, 2018 3:47 PM
> To: Zhang, Qi Z <qi.z.zhang at intel.com>
> Cc: dev at dpdk.org; Guo, Jia <jia.guo at intel.com>
> Subject: [PATCH] net/i40e: fix shifts of 32-bit value
>
> Cppcheck reports following error,
> (error) Shifting 32-bit value by 36 bits is undefined behaviour
>
> According to datasheet, there's PHY type and PHY type extension in setting PHY
> config command, should exclude PHY type extension when setting PHY type.
>
> Fixes: 1bb8f661168d ("net/i40e: fix link down and negotiation")
>
> Signed-off-by: Beilei Xing <beilei.xing at intel.com>
Acked-by: Qi Zhang <qi.z.zhang at intel.com>
Applied to dpdk-next-net-intel
Thanks!
Qi
More information about the dev
mailing list