Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 May 2021 01:17:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 230996] em/igb: Intel i210/i350: ifconfig: enabling "vlanhwtag" renders VLAN on i210/i350 NICs unusable
Message-ID:  <bug-230996-7501-5pFdVXE1Lf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-230996-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-230996-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230996

--- Comment #30 from Kaho Toshikazu <kaho@elam.kais.kyoto-u.ac.jp> ---
(In reply to Kevin Bowling from comment #29)

EVENTHANDLER_REGISTER seems to require (struct ifnet *)
which typedef if_t at if_var.h. When a vlan interface is created/destroyed,
the vlan_config/unconfig handler is called, but I can not observe
any execution of iflib_vlan_register or iflib_vlan_unregister at=20
using current code. The conversion form ctx to ifp makes execution of handl=
ers.

Then these handlers are called when a event is happened regardless for
other devices or for itself. The compare is required to pick up a event
related to a device driver. The handler calls with if_t because of
being registered if_t instead of if_ctx_t by the above modification.

--=20
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230996-7501-5pFdVXE1Lf>