diff options
Diffstat (limited to 'drivers/net/ethernet/sfc/nic.h')
-rw-r--r-- | drivers/net/ethernet/sfc/nic.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/net/ethernet/sfc/nic.h b/drivers/net/ethernet/sfc/nic.h index 438cef11f727..7a9647a3c565 100644 --- a/drivers/net/ethernet/sfc/nic.h +++ b/drivers/net/ethernet/sfc/nic.h | |||
@@ -252,7 +252,6 @@ extern int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf, | |||
252 | bool spoofchk); | 252 | bool spoofchk); |
253 | 253 | ||
254 | struct ethtool_ts_info; | 254 | struct ethtool_ts_info; |
255 | #ifdef CONFIG_SFC_PTP | ||
256 | extern void efx_ptp_probe(struct efx_nic *efx); | 255 | extern void efx_ptp_probe(struct efx_nic *efx); |
257 | extern int efx_ptp_ioctl(struct efx_nic *efx, struct ifreq *ifr, int cmd); | 256 | extern int efx_ptp_ioctl(struct efx_nic *efx, struct ifreq *ifr, int cmd); |
258 | extern int efx_ptp_get_ts_info(struct net_device *net_dev, | 257 | extern int efx_ptp_get_ts_info(struct net_device *net_dev, |
@@ -260,31 +259,6 @@ extern int efx_ptp_get_ts_info(struct net_device *net_dev, | |||
260 | extern bool efx_ptp_is_ptp_tx(struct efx_nic *efx, struct sk_buff *skb); | 259 | extern bool efx_ptp_is_ptp_tx(struct efx_nic *efx, struct sk_buff *skb); |
261 | extern int efx_ptp_tx(struct efx_nic *efx, struct sk_buff *skb); | 260 | extern int efx_ptp_tx(struct efx_nic *efx, struct sk_buff *skb); |
262 | extern void efx_ptp_event(struct efx_nic *efx, efx_qword_t *ev); | 261 | extern void efx_ptp_event(struct efx_nic *efx, efx_qword_t *ev); |
263 | #else | ||
264 | static inline void efx_ptp_probe(struct efx_nic *efx) {} | ||
265 | static inline int efx_ptp_ioctl(struct efx_nic *efx, struct ifreq *ifr, int cmd) | ||
266 | { | ||
267 | return -EOPNOTSUPP; | ||
268 | } | ||
269 | static inline int efx_ptp_get_ts_info(struct net_device *net_dev, | ||
270 | struct ethtool_ts_info *ts_info) | ||
271 | { | ||
272 | ts_info->so_timestamping = (SOF_TIMESTAMPING_SOFTWARE | | ||
273 | SOF_TIMESTAMPING_RX_SOFTWARE); | ||
274 | ts_info->phc_index = -1; | ||
275 | |||
276 | return 0; | ||
277 | } | ||
278 | static inline bool efx_ptp_is_ptp_tx(struct efx_nic *efx, struct sk_buff *skb) | ||
279 | { | ||
280 | return false; | ||
281 | } | ||
282 | static inline int efx_ptp_tx(struct efx_nic *efx, struct sk_buff *skb) | ||
283 | { | ||
284 | return NETDEV_TX_OK; | ||
285 | } | ||
286 | static inline void efx_ptp_event(struct efx_nic *efx, efx_qword_t *ev) {} | ||
287 | #endif | ||
288 | 262 | ||
289 | extern const struct efx_nic_type falcon_a1_nic_type; | 263 | extern const struct efx_nic_type falcon_a1_nic_type; |
290 | extern const struct efx_nic_type falcon_b0_nic_type; | 264 | extern const struct efx_nic_type falcon_b0_nic_type; |