Re: HEADSUP! netgraph Metadata changing.

From: Gleb Smirnoff (glebius_at_cell.sick.ru)
Date: 06/07/04

  • Next message: Ruslan Ermilov: "Re: HEADSUP! netgraph Metadata changing."
    Date: Mon, 7 Jun 2004 11:44:10 +0400
    To: Ruslan Ermilov <ru@freebsd.org>
    
    

    On Mon, Jun 07, 2004 at 10:38:12AM +0300, Ruslan Ermilov wrote:
    R> On Mon, Jun 07, 2004 at 11:17:01AM +0400, Gleb Smirnoff wrote:
    R> > On Sun, Jun 06, 2004 at 06:35:51PM -0700, Julian Elischer wrote:
    R> > J> In addition the ng_ksocket node adds info into metadata and I suspect
    R> > J> there are people using that.
    R> >
    R> > Since ng_ksocket tags packets for itself only, we can safely change it.
    R> >
    R> I use this feature in one proprietary module (need to send/recevive
    R> UDP datagrams to/from different destinations).

    Does your module reads/writes meta? Or just forwards the meta? If it just
    forwards meta, does it allocate new mbuf? If it does, then you should copy
    tag from old mbuf to a new one. If it does not allocate new mbuf, than
    our ng_ksocket change won't break your module.

    -- 
    Totus tuus, Glebius.
    GLEBIUS-RIPN GLEB-RIPE
    _______________________________________________
    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: Ruslan Ermilov: "Re: HEADSUP! netgraph Metadata changing."

    Relevant Pages

    • Re: Much improved sosend_*() functions
      ... > Andrew Gallatin wrote: ... Did you try 16KB jumbos? ... >> big difference to a chain of M_EXT mbufs is that you need to allocate ... >> only one mbuf wrapper, rather than one for each item in the list. ...
      (freebsd-current)
    • Re: Much improved sosend_*() functions
      ... > Andrew Gallatin wrote: ... Did you try 16KB jumbos? ... >> big difference to a chain of M_EXT mbufs is that you need to allocate ... >> only one mbuf wrapper, rather than one for each item in the list. ...
      (freebsd-net)
    • mbufs & EXT_EXTREF
      ... However, I'm finding the extracted example below seems to decrement the system mbuf usage count below zero, causing thing like vmstat -z to wrap negatively. ... void myfreefunc(void *, void *) ... "could not allocate rx mbuf\n"); ...
      (freebsd-current)
    • Re: vr(4) performance
      ... fact that we call m_defragon every mbuf that we send through it. ... This seems to really screw performance on outgoing packets (something ... You could just allocate a static output queue and copy ...
      (freebsd-hackers)