Skip to content

Commit

Permalink
netfilter: nf_fwd_netdev: clear timestamp in forwarding path
Browse files Browse the repository at this point in the history
[ Upstream commit c77761c ]

Similar to 7980d2e ("ipvs: clear skb->tstamp in forwarding path").
fq qdisc requires tstamp to be cleared in forwarding path.

Fixes: 8203e2d ("net: clear skb->tstamp in forwarding paths")
Fixes: fb420d5 ("tcp/fq: move back to CLOCK_MONOTONIC")
Fixes: 80b14de ("net: Add a new socket option for a future transmit time.")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
ummakynes authored and gregkh committed Oct 29, 2020
1 parent 4439fec commit 3bbd53b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/netfilter/nf_dup_netdev.c
Expand Up @@ -19,6 +19,7 @@ static void nf_do_netdev_egress(struct sk_buff *skb, struct net_device *dev)
skb_push(skb, skb->mac_len);

skb->dev = dev;
skb->tstamp = 0;
dev_queue_xmit(skb);
}

Expand Down
1 change: 1 addition & 0 deletions net/netfilter/nft_fwd_netdev.c
Expand Up @@ -138,6 +138,7 @@ static void nft_fwd_neigh_eval(const struct nft_expr *expr,
return;

skb->dev = dev;
skb->tstamp = 0;
neigh_xmit(neigh_table, dev, addr, skb);
out:
regs->verdict.code = verdict;
Expand Down

0 comments on commit 3bbd53b

Please sign in to comment.