Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236710
b: refs/heads/master
c: 144001b
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jan 27, 2011
1 parent f9344f4 commit a6cc4f7
Show file tree
Hide file tree
Showing 3 changed files with 9 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: 606598237c856b0c6584c2263288657658140da9
refs/heads/master: 144001bddcb4db62c2261f1d703d835851031577
7 changes: 7 additions & 0 deletions trunk/include/net/inetpeer.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ struct inet_peer {

void inet_initpeers(void) __init;

#define INETPEER_METRICS_NEW (~(u32) 0)

static inline bool inet_metrics_new(const struct inet_peer *p)
{
return p->metrics[RTAX_LOCK-1] == INETPEER_METRICS_NEW;
}

/* can be called with or without local BH being disabled */
struct inet_peer *inet_getpeer(struct inetpeer_addr *daddr, int create);

Expand Down
1 change: 1 addition & 0 deletions trunk/net/ipv4/inetpeer.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ struct inet_peer *inet_getpeer(struct inetpeer_addr *daddr, int create)
atomic_set(&p->rid, 0);
atomic_set(&p->ip_id_count, secure_ip_id(daddr->a4));
p->tcp_ts_stamp = 0;
p->metrics[RTAX_LOCK-1] = INETPEER_METRICS_NEW;
INIT_LIST_HEAD(&p->unused);


Expand Down

0 comments on commit a6cc4f7

Please sign in to comment.