net/i40e: fix shifts of 32-bit value
authorBeilei Xing <beilei.xing@intel.com>
Wed, 23 May 2018 07:46:46 +0000 (15:46 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:58 +0000 (01:35 +0200)
commitbc98bf3a2d0301a17707bc04e95fc32746a397c4
tree8ea5cd8f06c17aff0750029c02b7de3e729a7473
parent5dadd757188e68260880924dea38c22858ac2ca9
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")
Cc: stable@dpdk.org
Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c