[Bug 240787] netgraph/ng_bridge: Unlimited limit of links

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Sep 24 11:14:16 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240787

            Bug ID: 240787
           Summary: netgraph/ng_bridge: Unlimited limit of links
           Product: Base System
           Version: 12.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: lutz at donnerhacke.de

Created attachment 207757
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=207757&action=edit
remove fixed limit for links on netgraph/ng_bridge

The netgraph node ng_bridge has a compile time limit for the number of links,
it can handle.

This patch removes this limit by allocating more links when needed (assuming
sequential assignment).

Please note, that this patch is preliminary. It's only done to allow an
incremental review of the development.

A large number of links require further changes to the code in order to handle
all cases efficient. This includes:
 + replacement of the central "priv->link" table by hook private data
 + replacement of foreach loops by a linked list over looped hooks

In consequence the current requirement to use a compact, sequential assignment
of "link%d" hooks can be replaced by arbitrary naming conventions.

How should I provide the additional patches? A large patch (overwriting the
previous one) or by a series of patches?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list