net: ipv4: Hook into time based transmission

Add a transmit_time field to struct inet_cork, then copy the
timestamp from the CMSG cookie at ip_setup_cork() so we can
safely copy it into the skb later during __ip_make_skb().

For the raw fast path, just perform the copy at raw_send_hdrinc().

Signed-off-by: Richard Cochran <[email protected]>
Signed-off-by: Jesus Sanchez-Palencia <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Jesus Sanchez-Palencia 2018-07-03 15:42:49 -07:00 • committed by David S. Miller
commit bc969a9778
6 changed files with 10 additions and 0 deletions

View file

@ -148,6 +148,7 @@ struct inet_cork {
__s16 tos;
char priority;
__u16 gso_size;
u64 transmit_time;
};
struct inet_cork_full {