iPXE currently aligns all I/O buffers on a 2kB boundary. This is overkill for transmitted packets, which are typically much smaller than 2kB. Align I/O buffers on their own size. This reduces the alignment requirement for small buffers, while preserving the guarantee that I/O buffers will never cross boundaries that might cause problems for some DMA engines. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
| 19 |
|
19 |
|
| 20 |
|
20 |
|
| 21 |
|
21 |
|
|
22 |
|
|
| 22 |
|
23 |
|
| 23 |
|
24 |
|
| 24 |
|
25 |
|
|
|
||
| 40 |
|
41 |
|
| 41 |
|
42 |
|
| 42 |
|
43 |
|
|
44 |
|
|
| 43 |
|
45 |
|
| 44 |
|
46 |
|
| 45 |
|
47 |
|
| 46 |
|
48 |
|
| 47 |
|
49 |
|
| 48 |
|
50 |
|
| 49 |
|
|
|
| 50 |
|
|
|
| 51 |
|
|
|
| 52 |
|
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
| 53 |
|
60 |
|
| 54 |
|
|
|
|
61 |
|
|
| 55 |
|
62 |
|
| 56 |
|
63 |
|
| 57 |
|
64 |
|
|
|
||
| 61 |
|
68 |
|
| 62 |
|
69 |
|
| 63 |
|
70 |
|
|
71 |
|
|
| 64 |
|
72 |
|
| 65 |
|
73 |
|
| 66 |
|
74 |
|
|
|
||
| 13 |
|
13 |
|
| 14 |
|
14 |
|
| 15 |
|
15 |
|
| 16 |
|
|
|
| 17 |
|
|
|
| 18 |
|
|
|
| 19 |
|
|
|
| 20 |
|
|
|
| 21 |
|
|
|
| 22 |
|
|
|
| 23 |
|
|
|
| 24 |
|
|
|
| 25 |
|
|
|
| 26 |
|
|
|
| 27 |
|
16 |
|
| 28 |
|
17 |
|
| 29 |
|
18 |
|