Make NIC RX/TX buffer sizes configureable in libc

* Remove far too low default values from Nic::Connection constructor
* Extend lwip initialization function with desired TX/RX buffer sizes
* Add configuration possibility to libc_lwip_dhcp plugin to define
  buffer sizes, like the following:

  '<libc tx_buf_size="1M" tx_buf_size="1M"/>'

Fixes #892
This commit is contained in:
Stefan Kalkowski
2013-09-23 15:58:45 +02:00
committed by Christian Helmuth
parent c56927b76e
commit 8f0c789ed4
15 changed files with 81 additions and 26 deletions

View File

@@ -161,10 +161,10 @@ append config {
<arg value="netserver"/>
<arg value="-D"/>
<arg value="-4"/>
<arg value="-f"/>}
append_if [have_spec linux] config "
<libc ip_addr=\"$lx_ip_addr\" netmask=\"255.255.255.0\" gateway=\"10.0.2.1\"/>"
append config {
<arg value="-f"/>
<libc tx_buf_size="2M" rx_buf_size="2M"}
append_if [have_spec linux] config "ip_addr=\"$lx_ip_addr\" netmask=\"255.255.255.0\" gateway=\"10.0.2.1\""
append config {/>
</config>}
append_if $use_nic_bridge config {
<route>