Commit ec6b3d55 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski Committed by Treehugger Robot
Browse files

UPSTREAM: netfilter: nfnetlink_log: always add a timestamp



Compared to all the other work we're already doing to deliver
an skb to userspace this is very cheap - at worse an extra
call to ktime_get_real() - and very useful.

(and indeed it may even be cheaper if we're running from other hooks)

(background: Android occasionally logs packets which
caused wake from sleep/suspend and we'd like to have
timestamps reliably associated with these events)

Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Martin KaFai Lau <kafai@fb.com>
Cc: Florian Westphal <fw@strlen.de>
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
(cherry picked from commit 1d85594f)
Change-Id: Id9b8bc046204c11bf3321e73a67b444777d387dd
parent 4db95aa2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment