os: explicit cache policy in Nic::Session_component

To enable the use of uncached DMA buffers as RX and TX communication
buffers in between driver (service) and client, introduce a cache
attribute in the constructor of Nic::Session_component

Ref #3291
This commit is contained in:
Stefan Kalkowski
2019-04-15 14:59:22 +02:00
committed by Christian Helmuth
parent 0b9916cae2
commit c767f6ccf1
11 changed files with 39 additions and 29 deletions

View File

@@ -104,7 +104,8 @@ class Ipxe_session_component : public Nic::Session_component
Genode::size_t const rx_buf_size,
Genode::Allocator &rx_block_md_alloc,
Genode::Env &env)
: Session_component(tx_buf_size, rx_buf_size, rx_block_md_alloc, env)
: Session_component(tx_buf_size, rx_buf_size, Genode::CACHED,
rx_block_md_alloc, env)
{
instance = this;