aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_output.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-10-08 20:27:19 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:54:56 -0400
commit45b17f48eaf5e5ff4202454985557b3240141caa (patch)
tree00b0b9dc375899b5d1f8ee11f78ef5dcc9b1c2e1 /net/xfrm/xfrm_output.c
parentcdf7e668d4327a33e11be04c4cb9bcc604eaaa0f (diff)
[IPSEC]: Move RO-specific output code into xfrm6_mode_ro.c
The lastused update check in xfrm_output can be done just as well in the mode output function which is specific to RO. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_output.c')
-rw-r--r--net/xfrm/xfrm_output.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c
index 40d75eccddda..8c852119d190 100644
--- a/net/xfrm/xfrm_output.c
+++ b/net/xfrm/xfrm_output.c
@@ -14,7 +14,6 @@
14#include <linux/netdevice.h> 14#include <linux/netdevice.h>
15#include <linux/skbuff.h> 15#include <linux/skbuff.h>
16#include <linux/spinlock.h> 16#include <linux/spinlock.h>
17#include <linux/time.h>
18#include <net/dst.h> 17#include <net/dst.h>
19#include <net/xfrm.h> 18#include <net/xfrm.h>
20 19
@@ -75,9 +74,6 @@ int xfrm_output(struct sk_buff *skb)
75 x->curlft.bytes += skb->len; 74 x->curlft.bytes += skb->len;
76 x->curlft.packets++; 75 x->curlft.packets++;
77 76
78 if (x->props.mode == XFRM_MODE_ROUTEOPTIMIZATION)
79 x->lastused = get_seconds();
80
81 spin_unlock_bh(&x->lock); 77 spin_unlock_bh(&x->lock);
82 78
83 skb_reset_network_header(skb); 79 skb_reset_network_header(skb);