Summary: | [netgraph][patch] ng_bridge hooks should auto assign number for [up]link | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | David Marker <dave> | ||||||
Component: | kern | Assignee: | Gleb Smirnoff <glebius> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | CC: | afedorov, glebius, wigneddoom | ||||||
Priority: | --- | ||||||||
Version: | 14.0-STABLE | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
David Marker
2024-04-02 14:37:01 UTC
Hi David! It would be nice to post a patch for ng_bridge(4) on the https://reviews.freebsd.org/. You can do this via the web interface according to the instructions: https://wiki.freebsd.org/Phabricator (Create a Revision via Web Interface) A quick inspection of the patch showed that I have something to recommend. Added review D44615 as requested. Thanks for submission! Already working on comments in the review. attached patches out of date. review has current. Created attachment 249705 [details]
updated patch for CURRENT
updating patch for CURRENT to match the review
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=86a6393a7d6766875a9e03daa0273a2e55faacdd commit 86a6393a7d6766875a9e03daa0273a2e55faacdd Author: David Marker <dave@freedave.net> AuthorDate: 2024-04-08 17:48:22 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2024-04-08 17:48:22 +0000 ng_bridge: allow to automatically assign numbers to new hooks This will allow a userland machinery that orchestrates a bridge (e.g. a jail or vm manager) to not double the number allocation logic. See bug 278130 for longer description and examples. Reviewed by: glebius, afedorov Differential Revision: https://reviews.freebsd.org/D44615 PR: 278130 share/man/man4/ng_bridge.4 | 13 +++++- sys/netgraph/ng_bridge.c | 104 +++++++++++++++++++++++++++++++++++---------- 2 files changed, 93 insertions(+), 24 deletions(-) |