diff options
author | Martin KaFai Lau <kafai@fb.com> | 2022-03-02 22:56:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-03 17:38:48 +0300 |
commit | 80fcec675112bd2f697ca1ca74ceb923c53cd569 (patch) | |
tree | 700f55b5f52aa5068d79856baf02499a9663cc60 /block | |
parent | b6561f8491ca899e5a08311796085c9738d631ae (diff) | |
download | linux-80fcec675112bd2f697ca1ca74ceb923c53cd569.tar.xz |
net: Get rcv tstamp if needed in nfnetlink_{log, queue}.c
If skb has the (rcv) timestamp available, nfnetlink_{log, queue}.c
logs/outputs it to the userspace. When the locally generated skb is
looping from egress to ingress over a virtual interface (e.g. veth,
loopback...), skb->tstamp may have the delivery time before it is
known that will be delivered locally and received by another sk. Like
handling the delivery time in network tapping, use ktime_get_real() to
get the (rcv) timestamp. The earlier added helper skb_tstamp_cond() is
used to do this. false is passed to the second 'cond' arg such
that doing ktime_get_real() or not only depends on the
netstamp_needed_key static key.
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions