]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
qlxgb: Initialize if_mtu before setting max_frame_size.
authormarkj <markj@FreeBSD.org>
Tue, 1 Sep 2020 20:13:50 +0000 (20:13 +0000)
committermarkj <markj@FreeBSD.org>
Tue, 1 Sep 2020 20:13:50 +0000 (20:13 +0000)
commit4e2f0f58caf7097e9479ce1b9c6bf1cefacec542
tree5a660d0f06b86d5e51416a97414c05dbff5bf65d
parent52a2c0f8785eb9192826dfd8c5298293be008f7c
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