mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
packet_stream: improve buffer alignment
The bulk buffer is now 64Byte-aligned so that the allocated packets get aligned likewise (assumed the packet allocator uses an appropriately aligned block size). This ensures that each packet starts at a new cache line on common platforms. Issue #3053
This commit is contained in:
parent
4e375ec6df
commit
74f2954013
@ -487,7 +487,7 @@ class Genode::Packet_stream_base
|
|||||||
_ds_local_base(rm.attach(_ds_cap)),
|
_ds_local_base(rm.attach(_ds_cap)),
|
||||||
_submit_queue_offset(0),
|
_submit_queue_offset(0),
|
||||||
_ack_queue_offset(_submit_queue_offset + submit_queue_size),
|
_ack_queue_offset(_submit_queue_offset + submit_queue_size),
|
||||||
_bulk_buffer_offset(_ack_queue_offset + ack_queue_size)
|
_bulk_buffer_offset(align_addr(_ack_queue_offset + ack_queue_size, 6))
|
||||||
{
|
{
|
||||||
Genode::size_t ds_size = Genode::Dataspace_client(_ds_cap).size();
|
Genode::size_t ds_size = Genode::Dataspace_client(_ds_cap).size();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user