Re: Using ifconfig(8) to configure netgraph interfaces



On Thu, Apr 06, 2006 at 08:06:44AM +0000, Dima Dorfman wrote:
What are people's thoughts on extending ifconfig(8) to configure
netgraph-based interfaces, such as ng_fec(4)? The recent trend has
been to allow all kinds of different network interfaces to be
configured uniformly through ifconfig. Is there any reason
functionality based on netgraph nodes should be excluded?

The netgraph configuration processes differs significantly enought that
it would seem like you'd have to a lot of special cases for it. For
instance the create option would have to grow a lot of specificic
knowledge about the nodes that must be created via netgraph and how to
create them. Thus far, ifconfig functions have been pretty generic in
implementation except when they are specific a partifular interface
(e.g. if_bridge) or class of interfaces (e.g. wireless interfaces).

On a related note, is there any reason to not to use netgraph to
implement things like FEC for production use? Are there any advantages
to using a normal pseudo device (like NetBSD's agr(4)) instead of
improving the netgraph node? Performance concerns, anything like that?

ng_fec isn't really much of a netgraph node. It uses netgraph for
configuration, but actually directly hijacks the interface's input
functions rather than using the netgraph interfaces. I'd personally
prefer to see it replaced with a pseudo interface that was a bit better
integrated into the overall system

-- Brooks

--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4

Attachment: pgpbWK9RPUKte.pgp
Description: PGP signature



Relevant Pages

  • RE: netgraph with 10Gig interfaces
    ... enabling the NETGRAPH in the config file and compiled the new kernel. ... booted with the new kernel. ... Is that means these drivers are not supporting the netgraph? ... Subject: netgraph with 10Gig interfaces ...
    (freebsd-net)
  • Re: grouping 2 or more interfaces as 1
    ... > slower than link layer bonding. ... The netgraph version provides ... Also, if the pyshical interfaces are connected to different LANs, ...
    (freebsd-net)
  • Re: Multiple NAT router
    ... Does this virtualization facility virtualize the arp table? ... close as possible to the interfaces, so FreeBSD's stack wouldn't know it was being done. ... netgraph can shim into the interfaces the way you suggest. ...
    (freebsd-net)
  • Re: trunk interface (was (no subject))
    ... I know about the netgraph ether/fec interfaces. ... But I thought about a solution without netgraph. ... AFAIK Netgraph implies overhead and ng_ehter is more complicated to set up. ... Thomas Vogt wrote: ...
    (freebsd-net)
  • Re: Communication driver framework ?
    ... > routing among the NIC interfaces there). ... You are almost certainly looking for netgraph ... The framework also has an extensible configuration mechanism that lets ... To unsubscribe, ...
    (freebsd-hackers)