Skip to content
Commit 823ac60c authored by Robert Lubos's avatar Robert Lubos Committed by Carles Cufí
Browse files

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: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent e80a662a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment