Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263898
b: refs/heads/master
c: 0542b69
h: refs/heads/master
v: v3
  • Loading branch information
dpward authored and David S. Miller committed Sep 15, 2011
1 parent 53f8e8c commit bd85e1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02009afc223aae43b8e18918fc816e4520791537
refs/heads/master: 0542b69e2c57fc9668ce6a03155bea6e1f557901
5 changes: 4 additions & 1 deletion trunk/net/core/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct flow_cache_entry {
struct hlist_node hlist;
struct list_head gc_list;
} u;
struct net *net;
u16 family;
u8 dir;
u32 genid;
Expand Down Expand Up @@ -232,7 +233,8 @@ flow_cache_lookup(struct net *net, const struct flowi *key, u16 family, u8 dir,

hash = flow_hash_code(fc, fcp, key);
hlist_for_each_entry(tfle, entry, &fcp->hash_table[hash], u.hlist) {
if (tfle->family == family &&
if (tfle->net == net &&
tfle->family == family &&
tfle->dir == dir &&
flow_key_compare(key, &tfle->key) == 0) {
fle = tfle;
Expand All @@ -246,6 +248,7 @@ flow_cache_lookup(struct net *net, const struct flowi *key, u16 family, u8 dir,

fle = kmem_cache_alloc(flow_cachep, GFP_ATOMIC);
if (fle) {
fle->net = net;
fle->family = family;
fle->dir = dir;
memcpy(&fle->key, key, sizeof(*key));
Expand Down

0 comments on commit bd85e1b

Please sign in to comment.