Repository navigation
Commit cb21802
bpf: sockmap: Simplify sock_map_init_proto
We can take advantage of the fact that both callers of
sock_map_init_proto are holding a RCU read lock, and
have verified that psock is valid.
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200309111243.6982-7-lmb@cloudflare.com1 parent f747632 commit cb21802
1 file changed
Lines changed: 4 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | | - | |
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 150 | | |
159 | | - | |
160 | | - | |
| 151 | + | |
161 | 152 | | |
162 | | - | |
163 | 153 | | |
164 | 154 | | |
165 | | - | |
166 | 155 | | |
167 | 156 | | |
168 | 157 | | |
| |||
241 | 230 | | |
242 | 231 | | |
243 | 232 | | |
244 | | - | |
| 233 | + | |
245 | 234 | | |
246 | 235 | | |
247 | 236 | | |
| |||
286 | 275 | | |
287 | 276 | | |
288 | 277 | | |
289 | | - | |
| 278 | + | |
290 | 279 | | |
291 | 280 | | |
292 | 281 | | |
| |||
0 commit comments