Re: what is the story on if_index allocation ?

From: Luigi Rizzo (rizzo_at_icir.org)
Date: 04/20/04

  • Next message: SUZUKI Shinsuke: "Re: pim6sd configuration"
    Date: Mon, 19 Apr 2004 22:09:10 -0700
    To: Bill Fumerola <billf@freebsd.org>
    
    

    On Mon, Apr 19, 2004 at 03:43:30PM -0700, Bill Fumerola wrote:
    ...
    >
    > they're "un-needed" in much the same way that statically assigning disk
    > numbers is "un-needed". sure, the disks don't light on fire without it,
    > but some consistancy and persistance does make things nice.
    ...
    > i disagree that this logic belongs outside the kernel in the snmp agent.

    "outside the kernel" just means it can be in a library so consistency
    is preserved. After all if_nametoindex() is already a library.

    In any case my point is that in the kernel we do need an identifier
    associated to existing interfaces that can be used to quickly
    lookup information associated to the interface and that for
    various reasons (historical, locking, modularity)
    could be split in different data structures.

    If if_index does not have that semantics fine, then we just need
    something else.

    cheers
    luigi

    > an inconsistant if_index makes it difficult and error prone for using
    > the index in multiple utilities whose data may be combined/joined/scaled
    > with information from the snmp agent's IF-MIB/ifXTable tables.
    >
    > --
    > - bill fumerola / fumerola@yahoo-inc.com / billf@FreeBSD.org
    >
    >
    > _______________________________________________
    > freebsd-net@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-net
    > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: SUZUKI Shinsuke: "Re: pim6sd configuration"

    Relevant Pages

    • RE: Definition of interfaces in ifconfig
      ... > custom kernel with the drivers for those devices commented out. ... interfaces that are dynamically generated ... # PCI Ethernet NICs that use the common MII bus controller code. ... # ISA Ethernet NICs. ...
      (freebsd-questions)
    • Re: Changes to PM layer break userspace
      ... Please respond to the technical explanation I provided, ... kernel in the first place." ... Linus, http://lkml.org/lkml/2006/10/4/327 ... interfaces are equivalent in terms of support guarantee. ...
      (Linux-Kernel)
    • Re: NVIDIA FreeBSD kernel feature requests
      ... This summary makes an attempt to describe the kernel interfaces needed by ... and user mappings of I/O memory, ...
      (freebsd-hackers)
    • Re: starting with 2.7
      ... >> interfaces are probably ready to go regardless. ... > because you don't see any use to that particular feature that you can ... tightly coupled to the kernel, and those during ... > some commercial apps rely on modules (firewalls, virtual machines, ...
      (Linux-Kernel)
    • Re: NVIDIA FreeBSD kernel feature requests
      ... This summary makes an attempt to describe the kernel interfaces needed by ... and user mappings of I/O memory, ...
      (freebsd-hackers)