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:
committed by
Christian Helmuth
parent
c56927b76e
commit
8f0c789ed4
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user