diff options
author | julian <julian@FreeBSD.org> | 2004-06-26 22:24:16 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-06-26 22:24:16 +0000 |
commit | 5a269c8a7e26638b8f896d1601618e5253776958 (patch) | |
tree | 5db990cf15727892f404908f26b492b9f1b8a509 /sys/netgraph/ng_one2many.c | |
parent | cb255821c823542b64070fb2864196922202a027 (diff) | |
download | FreeBSD-src-5a269c8a7e26638b8f896d1601618e5253776958.zip FreeBSD-src-5a269c8a7e26638b8f896d1601618e5253776958.tar.gz |
Having moved metadata usage to mbuf tags, remove code that supports
the old way of doing it.
Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
Diffstat (limited to 'sys/netgraph/ng_one2many.c')
-rw-r--r-- | sys/netgraph/ng_one2many.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/netgraph/ng_one2many.c b/sys/netgraph/ng_one2many.c index 4c9720e..83f39d6 100644 --- a/sys/netgraph/ng_one2many.c +++ b/sys/netgraph/ng_one2many.c @@ -381,7 +381,6 @@ ng_one2many_rcvdata(hook_p hook, item_p item) int linkNum; int i; struct mbuf *m; - meta_p meta; m = NGI_M(item); /* just peaking, mbuf still owned by item */ /* Get link number */ @@ -411,7 +410,6 @@ ng_one2many_rcvdata(hook_p hook, item_p item) priv->nextMany = (priv->nextMany + 1) % priv->numActiveMany; break; case NG_ONE2MANY_XMIT_ALL: - meta = NGI_META(item); /* peek.. */ /* no need to copy data for the 1st one */ dst = &priv->many[priv->activeMany[0]]; @@ -419,7 +417,6 @@ ng_one2many_rcvdata(hook_p hook, item_p item) * except the first one, which we'll do last */ for (i = 1; i < priv->numActiveMany; i++) { - meta_p meta2 = NULL; struct mbuf *m2; struct ng_one2many_link *mdst; @@ -431,18 +428,10 @@ ng_one2many_rcvdata(hook_p hook, item_p item) NG_FREE_M(m); return (ENOBUFS); } - if (meta != NULL - && (meta2 = ng_copy_meta(meta)) == NULL) { - mdst->stats.memoryFailures++; - m_freem(m2); - NG_FREE_ITEM(item); - NG_FREE_M(m); - return (ENOMEM); - } /* Update transmit stats */ mdst->stats.xmitPackets++; mdst->stats.xmitOctets += m->m_pkthdr.len; - NG_SEND_DATA(error, mdst->hook, m2, meta2); + NG_SEND_DATA_ONLY(error, mdst->hook, m2); } break; #ifdef INVARIANTS |