[Bug 240530] Patch to allow ng_source to inject into any netgraph network

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Sep 12 10:26:15 UTC 2019


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

            Bug ID: 240530
           Summary: Patch to allow ng_source to inject into any netgraph
                    network
           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 207415
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=207415&action=edit
patch to ng_source in 12-STABLE train

ng_source is a module for debugging and performance measurement within
netgraph.

The current implementation is designed to emit packets to an physical ethernet
interface and tries to maximize the hardware throughput. There is already code
to limit the packet rate injected (maxpps) further.

The whole code is able to inject any netgraph messages into any netgraph
network, despite the dependency to a physical interface prohibits this at the
moment.

This patch allows to use the ng_source module to be used in arbitary netgraph
network. In order to limit the rate of packets injected, the maxpps part needs
to be enforced if there is no assigned ethernet interface available.

I personally use this patch to profile somewhat complex netgraph networks,
which terminate in i.e. in eiface nodes.

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


More information about the freebsd-bugs mailing list