diff options
| author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 01:14:38 -0500 |
|---|---|---|
| committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 01:14:38 -0500 |
| commit | bcd6acd51f3d4d1ada201e9bc5c40a31d6d80c71 (patch) | |
| tree | 2f6dffd2d3e4dd67355a224de7e7a960335a92fd /include/net/netns | |
| parent | 11c34c7deaeeebcee342cbc35e1bb2a6711b2431 (diff) | |
| parent | 3ff6a468b45b5dfeb0e903e56f4eb27d34b2437c (diff) | |
Merge commit 'origin/master' into next
Conflicts:
include/linux/kvm.h
Diffstat (limited to 'include/net/netns')
| -rw-r--r-- | include/net/netns/generic.h | 8 | ||||
| -rw-r--r-- | include/net/netns/xfrm.h | 1 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/net/netns/generic.h b/include/net/netns/generic.h index 0c04fd2a700b..ff4982ab84b6 100644 --- a/include/net/netns/generic.h +++ b/include/net/netns/generic.h | |||
| @@ -12,9 +12,11 @@ | |||
| 12 | * stuff on the struct net without explicit struct net modification | 12 | * stuff on the struct net without explicit struct net modification |
| 13 | * | 13 | * |
| 14 | * The rules are simple: | 14 | * The rules are simple: |
| 15 | * 1. register the ops with register_pernet_gen_device to get the id | 15 | * 1. set pernet_operations->id. After register_pernet_device you |
| 16 | * of your private pointer; | 16 | * will have the id of your private pointer. |
| 17 | * 2. call net_assign_generic() to put the private data on the struct | 17 | * 2. Either set pernet_operations->size (to have the code allocate and |
| 18 | * free a private structure pointed to from struct net ) or | ||
| 19 | * call net_assign_generic() to put the private data on the struct | ||
| 18 | * net (most preferably this should be done in the ->init callback | 20 | * net (most preferably this should be done in the ->init callback |
| 19 | * of the ops registered); | 21 | * of the ops registered); |
| 20 | * 3. do not change this pointer while the net is alive; | 22 | * 3. do not change this pointer while the net is alive; |
diff --git a/include/net/netns/xfrm.h b/include/net/netns/xfrm.h index 1ba912749caa..56f8e5585df7 100644 --- a/include/net/netns/xfrm.h +++ b/include/net/netns/xfrm.h | |||
| @@ -43,6 +43,7 @@ struct netns_xfrm { | |||
| 43 | struct work_struct policy_hash_work; | 43 | struct work_struct policy_hash_work; |
| 44 | 44 | ||
| 45 | struct sock *nlsk; | 45 | struct sock *nlsk; |
| 46 | struct sock *nlsk_stash; | ||
| 46 | 47 | ||
| 47 | u32 sysctl_aevent_etime; | 48 | u32 sysctl_aevent_etime; |
| 48 | u32 sysctl_aevent_rseqth; | 49 | u32 sysctl_aevent_rseqth; |
