mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
netns xfrm: lookup in netns
Pass netns to xfrm_lookup()/__xfrm_lookup(). For that pass netns to flow_cache_lookup() and resolver callback. Take it from socket or netdevice. Stub DECnet to init_net. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cdcbca7c1f
commit
52479b623d
22 changed files with 75 additions and 67 deletions
|
@ -165,7 +165,7 @@ static int flow_key_compare(struct flowi *key1, struct flowi *key2)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void *flow_cache_lookup(struct flowi *key, u16 family, u8 dir,
|
||||
void *flow_cache_lookup(struct net *net, struct flowi *key, u16 family, u8 dir,
|
||||
flow_resolve_t resolver)
|
||||
{
|
||||
struct flow_cache_entry *fle, **head;
|
||||
|
@ -225,7 +225,7 @@ nocache:
|
|||
void *obj;
|
||||
atomic_t *obj_ref;
|
||||
|
||||
err = resolver(key, family, dir, &obj, &obj_ref);
|
||||
err = resolver(net, key, family, dir, &obj, &obj_ref);
|
||||
|
||||
if (fle && !err) {
|
||||
fle->genid = atomic_read(&flow_cache_genid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue