diff options
author | Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com> | 2018-07-04 00:42:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-04 15:30:27 +0200 |
commit | bc969a977880511057053642a81371196303ca01 (patch) | |
tree | b7340f31fc5705adefd32a92fe25c777c52f1bc6 /include/net/inet_sock.h | |
parent | net: Add a new socket option for a future transmit time. (diff) | |
download | linux-bc969a977880511057053642a81371196303ca01.tar.xz linux-bc969a977880511057053642a81371196303ca01.zip |
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 <rcochran@linutronix.de>
Signed-off-by: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_sock.h')
-rw-r--r-- | include/net/inet_sock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h index 83d5b3c2ac42..314be484c696 100644 --- a/include/net/inet_sock.h +++ b/include/net/inet_sock.h @@ -148,6 +148,7 @@ struct inet_cork { __s16 tos; char priority; __u16 gso_size; + u64 transmit_time; }; struct inet_cork_full { |