Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73409f3b authored by David S. Miller's avatar David S. Miller
Browse files

net: Add some clarification to skb_tx_timestamp() comment.



We've seen so many instances of people invoking skb_tx_timestamp()
after the device already has been given the packet, that it's worth
being a little bit more verbose and explicit in this comment.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 37ec274e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2531,6 +2531,10 @@ static inline void sw_tx_timestamp(struct sk_buff *skb)
 * Ethernet MAC Drivers should call this function in their hard_xmit()
 * function immediately before giving the sk_buff to the MAC hardware.
 *
 * Specifically, one should make absolutely sure that this function is
 * called before TX completion of this packet can trigger.  Otherwise
 * the packet could potentially already be freed.
 *
 * @skb: A socket buffer.
 */
static inline void skb_tx_timestamp(struct sk_buff *skb)