]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/dev/qlxgb/qla_os.c
qlxgb: Initialize if_mtu before setting max_frame_size.
authorMark Johnston <markj@FreeBSD.org>
Tue, 1 Sep 2020 20:13:50 +0000 (20:13 +0000)
committerMark Johnston <markj@FreeBSD.org>
Tue, 1 Sep 2020 20:13:50 +0000 (20:13 +0000)
commitf7eec6b204f10f9f62f78dfe3e9e0ba42a3649fa
tree5a660d0f06b86d5e51416a97414c05dbff5bf65d
parente439fa62ef9a887efe40c962a7167e17da88834f
qlxgb: Initialize if_mtu before setting max_frame_size.

Previously we were relying on ether_ifattach() to set if_mtu, but
max_frame_size is initialized earlier.  This fixes a regression
introduced by r250375.

PR: 249050
Submitted by: Christian Vallières <novacrash_@hotmail.com>
MFC after: 3 days
sys/dev/qlxgb/qla_os.c