Commit ee0cbaef authored by Patrick McHardy's avatar Patrick McHardy

[NETFILTER]: Enable rx timestamps in ip_queue/ip6_queue

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 82347bd7
...@@ -162,6 +162,7 @@ static inline void ...@@ -162,6 +162,7 @@ static inline void
__ipq_reset(void) __ipq_reset(void)
{ {
peer_pid = 0; peer_pid = 0;
net_disable_timestamp();
__ipq_set_mode(IPQ_COPY_NONE, 0); __ipq_set_mode(IPQ_COPY_NONE, 0);
__ipq_flush(NF_DROP); __ipq_flush(NF_DROP);
} }
...@@ -517,9 +518,10 @@ ipq_rcv_skb(struct sk_buff *skb) ...@@ -517,9 +518,10 @@ ipq_rcv_skb(struct sk_buff *skb)
write_unlock_bh(&queue_lock); write_unlock_bh(&queue_lock);
RCV_SKB_FAIL(-EBUSY); RCV_SKB_FAIL(-EBUSY);
} }
} } else {
else net_enable_timestamp();
peer_pid = pid; peer_pid = pid;
}
write_unlock_bh(&queue_lock); write_unlock_bh(&queue_lock);
......
...@@ -167,6 +167,7 @@ static inline void ...@@ -167,6 +167,7 @@ static inline void
__ipq_reset(void) __ipq_reset(void)
{ {
peer_pid = 0; peer_pid = 0;
net_disable_timestamp();
__ipq_set_mode(IPQ_COPY_NONE, 0); __ipq_set_mode(IPQ_COPY_NONE, 0);
__ipq_flush(NF_DROP); __ipq_flush(NF_DROP);
} }
...@@ -520,9 +521,10 @@ ipq_rcv_skb(struct sk_buff *skb) ...@@ -520,9 +521,10 @@ ipq_rcv_skb(struct sk_buff *skb)
write_unlock_bh(&queue_lock); write_unlock_bh(&queue_lock);
RCV_SKB_FAIL(-EBUSY); RCV_SKB_FAIL(-EBUSY);
} }
} } else {
else net_enable_timestamp();
peer_pid = pid; peer_pid = pid;
}
write_unlock_bh(&queue_lock); write_unlock_bh(&queue_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment