From 69263f6593d9a39cf6a8ba9c193e2cf24b4b1d02 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Fri, 18 Oct 2013 09:39:19 +0200 Subject: [PATCH] seoul: increase memory for network with bridge Fixes #918 --- ports/src/vancouver/main.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ports/src/vancouver/main.cc b/ports/src/vancouver/main.cc index 1dab2a2de..04971d584 100644 --- a/ports/src/vancouver/main.cc +++ b/ports/src/vancouver/main.cc @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -1164,11 +1165,16 @@ class Machine : public StaticReceiver } case MessageHostOp::OP_GET_MAC: { - Genode::Allocator_avl * tx_block_alloc = - new Genode::Allocator_avl(Genode::env()->heap()); + Nic::Packet_allocator *tx_block_alloc = + new (Genode::env()->heap()) Nic::Packet_allocator(Genode::env()->heap()); + + enum { + PACKET_SIZE = Nic::Packet_allocator::DEFAULT_PACKET_SIZE, + BUF_SIZE = Nic::Session::QUEUE_SIZE * PACKET_SIZE, + }; try { - _nic = new Nic::Connection(tx_block_alloc); + _nic = new Nic::Connection(tx_block_alloc, BUF_SIZE, BUF_SIZE); } catch (...) { Logging::printf("No NIC connection possible!\n"); return false;