diff options
author | Martin KaFai Lau <kafai@fb.com> | 2022-03-02 20:55:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-03 15:38:48 +0100 |
commit | de799101519aad23c6096041ba2744d7b5517e6a (patch) | |
tree | 01f4d21c7b918eb2d15a124ea581ef7a0671e935 /net/packet | |
parent | net: Add skb->mono_delivery_time to distinguish mono delivery_time from (rcv)... (diff) | |
download | linux-de799101519aad23c6096041ba2744d7b5517e6a.tar.xz linux-de799101519aad23c6096041ba2744d7b5517e6a.zip |
net: Add skb_clear_tstamp() to keep the mono delivery_time
Right now, skb->tstamp is reset to 0 whenever the skb is forwarded.
If skb->tstamp has the mono delivery_time, clearing it can hurt
the performance when it finally transmits out to fq@phy-dev.
The earlier patch added a skb->mono_delivery_time bit to
flag the skb->tstamp carrying the mono delivery_time.
This patch adds skb_clear_tstamp() helper which keeps
the mono delivery_time and clears everything else.
The delivery_time clearing will be postponed until the stack knows the
skb will be delivered locally. It will be done in a latter patch.
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions