seoul: increase memory for network with bridge

Fixes #918
This commit is contained in:
Alexander Boettcher 2013-10-18 09:39:19 +02:00 committed by Christian Helmuth
parent f82e1a7092
commit 69263f6593
1 changed files with 9 additions and 3 deletions

View File

@ -45,6 +45,7 @@
#include <cap_session/connection.h>
#include <base/allocator_avl.h>
#include <nic_session/connection.h>
#include <nic/packet_allocator.h>
#include <os/config.h>
#include <os/alarm.h>
#include <os/synced_interface.h>
@ -1164,11 +1165,16 @@ class Machine : public StaticReceiver<Machine>
}
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;