From nobody Wed Sep 20 21:06:25 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RrWKt4Tlhz4v9fS for ; Wed, 20 Sep 2023 21:06:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RrWKt3R66z4NMy for ; Wed, 20 Sep 2023 21:06:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695243986; a=rsa-sha256; cv=none; b=CJCaUlTPtLb1NU2bTRpPty9uegqsZARER8yj4akMRZTkshtImiCpmTnBpXDKhoFoKcinUq sA+ToVHVfUiNZKipfjMi/52pZgtjRAOl84PZLhBo6NnlWZnaENlRkQIgIzNpVRF2uXDJ+H kKlXZfpePhJTr1WR0Cz4p4FYKfE9UAgFQemYHn3JcQsqCVLKpuW8IhfZs8p7LcAJqnAGrZ iKWcfkAYiueKxdlRiYlAKoERkCQu2uPy11fHpy//HuV9LluvToEVIfFTL9Oj6APobnVkql KYD8nx0GCh+aw5LGWGimGGN0wWT7DGn+11PFjTDdHrUrVQ7S6ng+lyspsAlbBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695243986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cUe6SUZsT69tFlz2sT0GEB9GhJPSvO/hszNpTU+LLn4=; b=N5PEkgJi3c+0dTM6Vuzre1AcafRqdIgfmFtNVoHiWegjJSKaUgre7WbzmltBBz1pcw6zHk 4lhHpUZxHCSFERX7N081gFnLMKXJbXQACyoPq3zH2GWeuOMRniX50W+BkYzN4ypvf9q1lM UI/oXM53oyezfUVsIyLToSJ6V7AlgBcvFu2WE3jUDMucXpLv4bZDbUWpHx1MOacU4J3D49 eMdFVMe8NiGxtXkKjGuaLmWPUwz/UvYpYKXHeXMy63BMGnXYlGpipjvu3Bq1BwysPYvoOw Tr+s7ejx7DjfBoBEfuq+CMqvUKhxmDFIn0TectzB5bmI/y6c1mSPw31y/L7Ojw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RrWKt2V2Xz1B3b for ; Wed, 20 Sep 2023 21:06:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38KL6QXQ005110 for ; Wed, 20 Sep 2023 21:06:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38KL6QHl005109 for bugs@FreeBSD.org; Wed, 20 Sep 2023 21:06:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 250749] /etc/network.subr: Mitigate absence of LINK_UP notification when VIRTIO_NET_F_STATUS is not negotiated Date: Wed, 20 Sep 2023 21:06:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: johan@stromnet.se X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250749 Johan Str=C3=B6m changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |johan@stromnet.se --- Comment #2 from Johan Str=C3=B6m --- I think I might have the same issue with vlan interfaces on vtnet interface (proxmox host with virtio interface), dhclient never starts at boot or late= r. Relevant rc.conf: vlans_vtnet0=3D"vlan2 vlan10 vlan11 vlan12 vlan13 vlan14 vlan15 vlan16 vlan= 17 vlan18 vlan19 vlan40" ifconfig_vtnet0=3D"inet ......" create_args_vlan12=3D"vlan 12" ifconfig_vlan12=3D"up DHCP" vlan12 is brought UP but dhclient is never launched at boot (or when trying restarting netif). Manually creating the device with "ifconfig vlan12 create vlan 12 vlandev vtnet0" gives the following event in devd: Pushing table=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 setting *=3D!system=3DETHERNET subsystem=3Dvlan12 type=3DIFATTACH setting _=3Dsystem=3DETHERNET subsystem=3Dvlan12 type=3DIFATTACH setting timestamp=3D1695243315.525712=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 setting system=3DETHERNET=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 setting subsystem=3Dvlan12=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 setting type=3DIFATTACH=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Processing notify event=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 The devd.conf has rule: # notify 0 { match "system" "IFNET"; match "type" "LINK_UP"; media-type "ethernet"; action "service dhclient quietstart $subsystem"; }; So, I added /etc/devd/vtnet-dhcp.conf: notify 20 { match "system" "ETHERNET"; match "type" "IFATTACH"; match "subsystem" "vlan.*"; media-type "ethernet"; action "service dhclient quietstart $subsystem"; }; With this added, vtnet-based vlan with DHCP works as expected (on boot, on netif restart) --=20 You are receiving this mail because: You are the assignee for the bug.=