net/i40e: use PHY type to check PHY capability
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 27 Sep 2016 01:37:21 +0000 (09:37 +0800)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
commitedfb226f69bf68d514c9abae4b99b98aeb7c6a32
tree336393a0d069edf4962b6dd55a6d6868d972e2a7
parentc3e09182bcd6640c136e9d32a53c8b7607ef6448
net/i40e: use PHY type to check PHY capability

Using device ID to check PHY capability is not extensible.

Now we are using PHY type to detect PHY capability.

All link speeds supported by the device are encoded into PHY type,
and PHY type value can be read by admin queue "get_phy_capability"
command at initialization stage.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev.h