netfilter: conntrack: avoid same-timeout update
authorFlorian Westphal <fw@strlen.de>
Thu, 21 Feb 2019 14:38:29 +0000 (15:38 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 27 Feb 2019 09:58:21 +0000 (10:58 +0100)
commitcc16921351d8ba1eabc1923fd61d4f369fadde56
tree52300f577d4c1f1d32929015915604e5af734e08
parentd2c5c103b1337f590b7edf1509a6e294bdf22402
netfilter: conntrack: avoid same-timeout update

No need to dirty a cache line if timeout is unchanged.
Also, WARN() is useless here: we crash on 'skb->len' access
if skb is NULL.

Last, ct->timeout is u32, not 'unsigned long' so adapt the
function prototype accordingly.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack.h
net/netfilter/nf_conntrack_core.c