Patch v4.4.100 to Cradlepoint Current
Change-Id: Ia3c8d927e2d4445cc67793de5468074e521507a3
diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c
index 1c4ad47..c79dec5 100644
--- a/net/xfrm/xfrm_input.c
+++ b/net/xfrm/xfrm_input.c
@@ -327,6 +327,12 @@
spin_unlock(&x->lock);
+ /* cradlepoint */
+ write_seqlock(&net->xfrm.xfrm_total_stats_lock);
+ net->xfrm.total_bytes += skb->len;
+ net->xfrm.total_packets++;
+ write_sequnlock(&net->xfrm.xfrm_total_stats_lock);
+
XFRM_MODE_SKB_CB(skb)->protocol = nexthdr;
inner_mode = x->inner_mode;