Commit 39f8fcd
bnxt: fill data page pool with frags if PAGE_SIZE > BNXT_RX_PAGE_SIZE
The data page pool always fills the HW rx ring with pages. On arm64 with
64K pages, this will waste _at least_ 32K of memory per entry in the rx
ring.
Fix by fragmenting the pages if PAGE_SIZE > BNXT_RX_PAGE_SIZE. This
makes the data page pool the same as the header pool.
Tested with iperf3 with a small (64 entries) rx ring to encourage buffer
circulation.
Fixes: cd1fafe ("eth: bnxt: add support rx side device memory TCP")
Reviewed-by: Michael Chan <[email protected]>
Signed-off-by: David Wei <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent b2cafef commit 39f8fcd
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
| 929 | + | |
929 | 930 | | |
930 | 931 | | |
931 | 932 | | |
932 | 933 | | |
933 | | - | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
934 | 940 | | |
935 | 941 | | |
936 | 942 | | |
937 | | - | |
| 943 | + | |
938 | 944 | | |
939 | 945 | | |
940 | 946 | | |
| |||
1029 | 1035 | | |
1030 | 1036 | | |
1031 | 1037 | | |
1032 | | - | |
| 1038 | + | |
1033 | 1039 | | |
1034 | 1040 | | |
1035 | 1041 | | |
| |||
0 commit comments