diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/phy.h | 2 | ||||
| -rw-r--r-- | include/linux/skbuff.h | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 54fc4138955f..79f337c47388 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
| @@ -420,7 +420,7 @@ struct phy_driver { | |||
| 420 | 420 | ||
| 421 | /* | 421 | /* |
| 422 | * Requests a Tx timestamp for 'skb'. The phy driver promises | 422 | * Requests a Tx timestamp for 'skb'. The phy driver promises |
| 423 | * to deliver it to the socket's error queue as soon as a | 423 | * to deliver it using skb_complete_tx_timestamp() as soon as a |
| 424 | * timestamp becomes available. One of the PTP_CLASS_ values | 424 | * timestamp becomes available. One of the PTP_CLASS_ values |
| 425 | * is passed in 'type'. | 425 | * is passed in 'type'. |
| 426 | */ | 426 | */ |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 8bd383caa363..0f966460a345 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -2020,8 +2020,13 @@ static inline bool skb_defer_rx_timestamp(struct sk_buff *skb) | |||
| 2020 | /** | 2020 | /** |
| 2021 | * skb_complete_tx_timestamp() - deliver cloned skb with tx timestamps | 2021 | * skb_complete_tx_timestamp() - deliver cloned skb with tx timestamps |
| 2022 | * | 2022 | * |
| 2023 | * PHY drivers may accept clones of transmitted packets for | ||
| 2024 | * timestamping via their phy_driver.txtstamp method. These drivers | ||
| 2025 | * must call this function to return the skb back to the stack, with | ||
| 2026 | * or without a timestamp. | ||
| 2027 | * | ||
| 2023 | * @skb: clone of the the original outgoing packet | 2028 | * @skb: clone of the the original outgoing packet |
| 2024 | * @hwtstamps: hardware time stamps | 2029 | * @hwtstamps: hardware time stamps, may be NULL if not available |
| 2025 | * | 2030 | * |
| 2026 | */ | 2031 | */ |
| 2027 | void skb_complete_tx_timestamp(struct sk_buff *skb, | 2032 | void skb_complete_tx_timestamp(struct sk_buff *skb, |
