net/ice/base: initialize PHY configuration FEC fields
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 15 Jun 2020 02:04:41 +0000 (10:04 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jun 2020 17:21:07 +0000 (19:21 +0200)
commit89e27d53676241c5fbcddd9b2421038d30e37f20
tree9b3794801a1db6374194ce70a756832632b43638
parentaa95ac6c67d2574debb645bb85e7d513fc2e076c
net/ice/base: initialize PHY configuration FEC fields

Currently the caller needs to initialize the ice_cfg_phy_fec() parameter
ice_aqc_set_phy_cfg_data FEC fields before calling. However, this is not
necessary since ice_cfg_phy_fec() calls Get PHY Capabilities.

Initialize ice_aqc_set_phy_cfg_data FEC capabilities and FEC option
fields from Get PHY Capabilities with media/topology in
ice_cfg_phy_fec().

Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_common.c