net/i40e/base: add EEE LPI status check for X722
authorGuinan Sun <guinanx.sun@intel.com>
Sat, 12 Sep 2020 03:00:37 +0000 (03:00 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:10 +0000 (18:55 +0200)
commit4b3e0ab70109088310065039f68b0ab65beea7c1
treed88162c341dcfa6f761f77a26572946fa0cbf4ee
parent2972fc3f4000108cf48b49389851278abb35425a
net/i40e/base: add EEE LPI status check for X722

Add reading LPI (low power idle) status for supported X722 devices.
If adapter's PHY supports EEE in current mode (device ID + link speed),
LPI status is read from PHY Clause 45 PCS status register.

Signed-off-by: Dawid Lukwinski <dawid.lukwinski@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/base/i40e_common.c