drivers: net: loopback: Increase MTU to match IPv4 MTU
net_pkt_alloc_buffer() will use the maximum packet length of NET_IPV4_MTU in case the interface MTU is smaller than this. Because of this, the using the loopback interface with smaller MTU leads to additional fragmentation at the TCP layer, which impacts performace and requires more network buffers for tests to execute. Fix this by matching the loopback interface MTU with NET_IPV4_MTU. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
e80a662ac7
commit
823ac60c70
1 changed files with 1 additions and 1 deletions
|
@ -125,4 +125,4 @@ NET_DEVICE_INIT(loopback, "lo",
|
|||
loopback_dev_init, NULL, NULL, NULL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
&loopback_api, DUMMY_L2,
|
||||
NET_L2_GET_CTX_TYPE(DUMMY_L2), 536);
|
||||
NET_L2_GET_CTX_TYPE(DUMMY_L2), 576);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue