CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/11/14 17:50:47

Modified files:
        sys/net        : if_var.h 

Log message:
add a void *if_drvid to ifnet so drivers can supply an opaque id.

there's a few places where specific drivers need to know if another
interface is backed by the same driver. at the moment they abuse a
function pointer to check this, but that's brittle because things like
trunks and bridges fiddle with function pointers on their port
interfaces to mask certain behaviours.

this adds a dedicated driver settable identifier for this purpose
instead, and then uses it in the appropriate drivers. a driver can
point this at anything it wants to act as an identifier.

this started out because i was looking at replacing rport_enqueue
with a generic function provided by if.h, which would break using
it to identify instances of rport(4).

ok mvs@

Reply via email to