Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2019 11:14:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 240787] netgraph/ng_bridge: Unlimited limit of links
Message-ID:  <bug-240787-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240787

            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@FreeBSD.org
          Reporter: lutz@donnerhacke.de

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

The netgraph node ng_bridge has a compile time limit for the number of link=
s,
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 han=
dle
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 assignm=
ent
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?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240787-227>