Re: Static vxlan configuration fails - probably because of wrong order in rc

From: Patrick M. Hausen <hausen_at_punkt.de>
Date: Fri, 22 Aug 2025 15:38:23 UTC
Hi all,

> Am 22.08.2025 um 17:16 schrieb Zhenlei Huang <zlei@FreeBSD.org>:
> 
> So vxlan interface is created and brought up prior to the usb ethernet.
> 
> Another approach to overcome this is preloading the driver via `/boot/loader.conf` since
> your usb ethernet is always plugged in.

Works, but looks weird. :-)

/boot/loader.conf:

if_smsc_load="YES"

kldstat:

Id Refs Address                Size Name
 1   11 0xffff000000000000  1340800 kernel
 3    1 0xffff00000136b000    25440 umodem.ko
 4    2 0xffff000001391000    28878 ucom.ko
 5    1 0xffff0000a9800000    2a000 if_vxlan.ko
 6    1 0xffff0000a982a000    22000 mac_ntpd.ko

So where is if_smsc.ko? If it's compiled into the kernel, then why the /boot/loader.conf entry?

Kind regards,
Patrick
-- 
punkt.de GmbH
Patrick M. Hausen
.infrastructure

Sophienstr. 187
76185 Karlsruhe

Tel. +49 721 9109500

https://infrastructure.punkt.de
info@punkt.de

AG Mannheim 108285
Geschäftsführer: Daniel Lienert, Fabian Stein