aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/skbuff.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index ac74ee085d74..a1b0400c8d86 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1947,6 +1947,27 @@ static inline ktime_t net_invalid_timestamp(void)
1947extern void skb_tstamp_tx(struct sk_buff *orig_skb, 1947extern void skb_tstamp_tx(struct sk_buff *orig_skb,
1948 struct skb_shared_hwtstamps *hwtstamps); 1948 struct skb_shared_hwtstamps *hwtstamps);
1949 1949
1950static inline void sw_tx_timestamp(struct sk_buff *skb)
1951{
1952 union skb_shared_tx *shtx = skb_tx(skb);
1953 if (shtx->software && !shtx->in_progress)
1954 skb_tstamp_tx(skb, NULL);
1955}
1956
1957/**
1958 * skb_tx_timestamp() - Driver hook for transmit timestamping
1959 *
1960 * Ethernet MAC Drivers should call this function in their hard_xmit()
1961 * function as soon as possible after giving the sk_buff to the MAC
1962 * hardware, but before freeing the sk_buff.
1963 *
1964 * @skb: A socket buffer.
1965 */
1966static inline void skb_tx_timestamp(struct sk_buff *skb)
1967{
1968 sw_tx_timestamp(skb);
1969}
1970
1950extern __sum16 __skb_checksum_complete_head(struct sk_buff *skb, int len); 1971extern __sum16 __skb_checksum_complete_head(struct sk_buff *skb, int len);
1951extern __sum16 __skb_checksum_complete(struct sk_buff *skb); 1972extern __sum16 __skb_checksum_complete(struct sk_buff *skb);
1952 1973