diff options
| author | Sergey Temerkhanov <[email protected]> | 2024-08-21 13:09:53 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-10-01 18:11:38 +0000 |
| commit | 5e0776451d89eefe66b19e010e48ece1cca07e58 (patch) | |
| tree | 60013a5ff899ab2049c49d4e62807ac7676f478c /drivers/net/ethernet/intel/ice/ice.h | |
| parent | ice: Enable 1PPS out from CGU for E825C products (diff) | |
| download | kernel-5e0776451d89eefe66b19e010e48ece1cca07e58.tar.gz kernel-5e0776451d89eefe66b19e010e48ece1cca07e58.zip | |
ice: Introduce ice_get_phy_model() wrapper
Introduce ice_get_phy_model() to improve code readability
Signed-off-by: Sergey Temerkhanov <[email protected]>
Reviewed-by: Przemek Kitszel <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice.h')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice.h b/drivers/net/ethernet/intel/ice/ice.h index d6f80da30dec..558cda577191 100644 --- a/drivers/net/ethernet/intel/ice/ice.h +++ b/drivers/net/ethernet/intel/ice/ice.h @@ -1047,5 +1047,10 @@ static inline void ice_clear_rdma_cap(struct ice_pf *pf) clear_bit(ICE_FLAG_RDMA_ENA, pf->flags); } +static inline enum ice_phy_model ice_get_phy_model(const struct ice_hw *hw) +{ + return hw->ptp.phy_model; +} + extern const struct xdp_metadata_ops ice_xdp_md_ops; #endif /* _ICE_H_ */ |
