Commit 07cf71b
committed
net: page_pool: add page_pool_get()
There is a page_pool_put() function but no get equivalent.
Having multiple references to a page pool is quite useful.
It avoids branching in create / destroy paths in drivers
which support memory providers.
Use the new helper in bnxt.
Acked-by: Jesper Dangaard Brouer <[email protected]>
Reviewed-by: Dragos Tatulea <[email protected]>
Reviewed-by: Mina Almasry <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent ae76e8d commit 07cf71b
2 files changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3800 | 3800 | | |
3801 | 3801 | | |
3802 | 3802 | | |
3803 | | - | |
3804 | | - | |
| 3803 | + | |
3805 | 3804 | | |
3806 | 3805 | | |
3807 | 3806 | | |
| |||
3848 | 3847 | | |
3849 | 3848 | | |
3850 | 3849 | | |
| 3850 | + | |
| 3851 | + | |
3851 | 3852 | | |
3852 | 3853 | | |
3853 | 3854 | | |
| |||
15903 | 15904 | | |
15904 | 15905 | | |
15905 | 15906 | | |
15906 | | - | |
15907 | | - | |
| 15907 | + | |
15908 | 15908 | | |
15909 | 15909 | | |
15910 | 15910 | | |
| |||
15922 | 15922 | | |
15923 | 15923 | | |
15924 | 15924 | | |
15925 | | - | |
15926 | | - | |
| 15925 | + | |
15927 | 15926 | | |
15928 | 15927 | | |
15929 | 15928 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
492 | 497 | | |
493 | 498 | | |
494 | 499 | | |
| |||
0 commit comments