summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2008-04-29 21:23:21 +0000
committerjulian <julian@FreeBSD.org>2008-04-29 21:23:21 +0000
commit28430bf7622073052bc8b00336be5b890c8be1d2 (patch)
tree6ba703f0f6502f7f9f53ba01297ee4005b9bfd22 /sys/net/if_ethersubr.c
parentbb4f1109f5f4002114a200e8bb7dd35f16cf0ee2 (diff)
downloadFreeBSD-src-28430bf7622073052bc8b00336be5b890c8be1d2.zip
FreeBSD-src-28430bf7622073052bc8b00336be5b890c8be1d2.tar.gz
Add an option (compiled out by default)
to profile outoing packets for a number of mbuf chain related parameters e.g. number of mbufs, wasted space. probably will do with further work later. Reviewed by: various
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index d18d422..1f0eb04 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -37,6 +37,7 @@
#include "opt_mac.h"
#include "opt_netgraph.h"
#include "opt_carp.h"
+#include "opt_mbuf_profiling.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -162,6 +163,7 @@ ether_output(struct ifnet *ifp, struct mbuf *m,
senderr(error);
#endif
+ M_PROFILE(m);
if (ifp->if_flags & IFF_MONITOR)
senderr(ENETDOWN);
if (!((ifp->if_flags & IFF_UP) &&
OpenPOWER on IntegriCloud