net/ice: fix PTP init
Because of base code update, "ice_ptp_init_phc" API for E810/E822 depends on PHY configuration, not whether the device is E810 based. So before this API is called, assign specific value to phy cfg. Fixes: 646dcbe6c701 ("net/ice: support IEEE 1588 PTP") Cc: stable@dpdk.org Signed-off-by: Simei Su <simei.su@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
This commit is contained in:
parent
f082b51958
commit
e35f6b1cd1
@ -5791,6 +5791,11 @@ ice_timesync_enable(struct rte_eth_dev *dev)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ice_is_e810(hw))
|
||||
hw->phy_cfg = ICE_PHY_E810;
|
||||
else
|
||||
hw->phy_cfg = ICE_PHY_E822;
|
||||
|
||||
if (hw->func_caps.ts_func_info.src_tmr_owned) {
|
||||
ret = ice_ptp_init_phc(hw);
|
||||
if (ret) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user