Re: adding if_dev member to struct ifnet

From: Vincent Jardin (vjardin_at_wanadoo.fr)
Date: 09/30/03

  • Next message: Poul-Henning Kamp: "Re: adding if_dev member to struct ifnet"
    To: Brooks Davis <brooks@one-eyed-alien.net>, arch@freebsd.org, net@freebsd.org
    Date: Tue, 30 Sep 2003 10:45:15 +0200
    
    

    Le Mardi 30 Septembre 2003 03:03, Brooks Davis a écrit :
    > [Previously posted to -net in another form.]
    >
    > I propose to add an if_dev member to struct ifnet. It would be of type
    > device_t and be defined to point to the device for the interface or NULL
    > if there is no device (or if there was not an easy way to get access to
    > one).
    >
    > This change would codify the the relationship between an interface and
    > the underlying physical device. It also would get rid of the existing
    > abuses of if_name to look up the driver associated with an interface
    > and simplify a number of messy cases in the conversion from if_unit and
    > if_name to if_xname.
    >
    > Does this seem like a reasonable thing to do?

    Yes, if it helps to remove if_name/if_unit, it is a thing to do. Moreover it
    sounds a good idea to have the if_dev field into the ifnet structure.

    Regards,
      Vincent

    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Poul-Henning Kamp: "Re: adding if_dev member to struct ifnet"

    Relevant Pages

    • HEADSUP: internal network interface changes
      ... I plan to commit a major rework of network interface related storage ... driver in the system. ... the change removes the embedded struct ifnet and layer 2 common ... .Fn if_attach "struct ifnet *ifp" ...
      (freebsd-current)
    • HEADSUP: internal network interface changes
      ... I plan to commit a major rework of network interface related storage ... driver in the system. ... the change removes the embedded struct ifnet and layer 2 common ... .Fn if_attach "struct ifnet *ifp" ...
      (freebsd-net)
    • Re: adding if_dev member to struct ifnet
      ... > I propose to add an if_dev member to struct ifnet. ... > device_t and be defined to point to the device for the interface or NULL ... > and simplify a number of messy cases in the conversion from if_unit and ...
      (freebsd-net)
    • HEADSUP if_xname incoming in one week
      ... I plan to commit the conversion of the if_name ... and if_unit members of struct ifnet to if_xname. ... adapters so testing on other interface types would be appreciated. ... the use of an array of length IFNAMSIZ in struct ifnet. ...
      (freebsd-current)
    • Re: per-interface packet filters
      ... > A> would require a recompile of all drivers etc. when a protocol is added or ... Struct ifnet is not a dynamic structure. ... > which chains/filters are used on interface via ifconfig? ... a callback with ifconfig and be notified of the event, ...
      (freebsd-net)