mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[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>
This commit is contained in:
parent
cdf7e668d4
commit
45b17f48ea
2 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,6 @@
|
|||
#include <linux/netdevice.h>
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/time.h>
|
||||
#include <net/dst.h>
|
||||
#include <net/xfrm.h>
|
||||
|
||||
|
@ -75,9 +74,6 @@ int xfrm_output(struct sk_buff *skb)
|
|||
x->curlft.bytes += skb->len;
|
||||
x->curlft.packets++;
|
||||
|
||||
if (x->props.mode == XFRM_MODE_ROUTEOPTIMIZATION)
|
||||
x->lastused = get_seconds();
|
||||
|
||||
spin_unlock_bh(&x->lock);
|
||||
|
||||
skb_reset_network_header(skb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue