Commit c23823a9 authored by Krishna T's avatar Krishna T Committed by Carles Cufi
Browse files

drivers: net: loopback: Make MTU configurable



This is useful to test higher packet sizes to simulate L2
Ethernet/Wi-Fi.

Signed-off-by: default avatarKrishna T <krishna.t@nordicsemi.no>
parent a1195ae3
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -185,6 +185,12 @@ config NET_LOOPBACK_SIMULATE_PACKET_DROP
	  Enable interface to have a controlable packet drop rate, only for
	  testing, should not be enabled for normal applications

config NET_LOOPBACK_MTU
	int "MTU for loopback interface"
	default 576
	help
	  This option sets the MTU for loopback interface.

module = NET_LOOPBACK
module-dep = LOG
module-str = Log level for network loopback driver
+1 −1
Original line number Diff line number Diff line
@@ -165,4 +165,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), 576);
		NET_L2_GET_CTX_TYPE(DUMMY_L2), CONFIG_NET_LOOPBACK_MTU);