Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335750
b: refs/heads/master
c: b294200
h: refs/heads/master
v: v3
  • Loading branch information
Saurabh Mohan authored and David S. Miller committed Nov 15, 2012
1 parent b5e8785 commit 7689059
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ba56fb45a927d083f655302e75a1911a75b5da6
refs/heads/master: b2942004fb5c9f3304b77e187b8a1977b3626c9b
5 changes: 5 additions & 0 deletions trunk/net/ipv4/ip_vti.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,17 @@ static int vti_rcv(struct sk_buff *skb)
if (tunnel != NULL) {
struct pcpu_tstats *tstats;

if (!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb))
return -1;

tstats = this_cpu_ptr(tunnel->dev->tstats);
u64_stats_update_begin(&tstats->syncp);
tstats->rx_packets++;
tstats->rx_bytes += skb->len;
u64_stats_update_end(&tstats->syncp);

skb->mark = 0;
secpath_reset(skb);
skb->dev = tunnel->dev;
return 1;
}
Expand Down

0 comments on commit 7689059

Please sign in to comment.