Commit 1b1a01d
bpf: Remove migrate_{disable|enable} from LPM trie
Both bpf program and bpf syscall may invoke ->update or ->delete
operation for LPM trie. For bpf program, its running context has already
disabled migration explicitly through (migrate_disable()) or implicitly
through (preempt_disable() or disable irq). For bpf syscall, the
migration is disabled through the use of bpf_disable_instrumentation()
before invoking the corresponding map operation callback.
Therefore, it is safe to remove the migrate_{disable|enable){} pair from
LPM trie.
Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20250108010728.207536-2-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>1 parent bfaac2a commit 1b1a01d
1 file changed
Lines changed: 4 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | | - | |
| 292 | + | |
294 | 293 | | |
295 | 294 | | |
296 | 295 | | |
297 | | - | |
298 | | - | |
299 | 296 | | |
300 | | - | |
301 | | - | |
302 | 297 | | |
303 | 298 | | |
304 | 299 | | |
| |||
342 | 337 | | |
343 | 338 | | |
344 | 339 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
| 340 | + | |
| 341 | + | |
349 | 342 | | |
350 | 343 | | |
351 | 344 | | |
| |||
425 | 418 | | |
426 | 419 | | |
427 | 420 | | |
428 | | - | |
429 | | - | |
| 421 | + | |
430 | 422 | | |
431 | 423 | | |
432 | 424 | | |
| |||
452 | 444 | | |
453 | 445 | | |
454 | 446 | | |
455 | | - | |
456 | 447 | | |
457 | 448 | | |
458 | 449 | | |
459 | | - | |
460 | 450 | | |
461 | 451 | | |
462 | 452 | | |
| |||
555 | 545 | | |
556 | 546 | | |
557 | 547 | | |
558 | | - | |
559 | 548 | | |
560 | 549 | | |
561 | | - | |
562 | 550 | | |
563 | 551 | | |
564 | 552 | | |
| |||
0 commit comments