summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_source.c
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2005-03-10 21:50:50 +0000
committerbmilekic <bmilekic@FreeBSD.org>2005-03-10 21:50:50 +0000
commitadcc57692defe8d294ef02cf7225cbcd2c64aa73 (patch)
tree359dfcb9ab9efa5fbc0f19a003c7de31d143743f /sys/netgraph/ng_source.c
parent4f7458d738bc1025dfa80d71f480c7e6165da681 (diff)
downloadFreeBSD-src-adcc57692defe8d294ef02cf7225cbcd2c64aa73.zip
FreeBSD-src-adcc57692defe8d294ef02cf7225cbcd2c64aa73.tar.gz
Make some basic grammar and style fixes to ng_source.c and ng_source.h.
The latter was particularly violated by someone's editor in the past, due to an effect I like to call "premature linewrapping."
Diffstat (limited to 'sys/netgraph/ng_source.c')
-rw-r--r--sys/netgraph/ng_source.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/netgraph/ng_source.c b/sys/netgraph/ng_source.c
index 63ee52c..13635eb 100644
--- a/sys/netgraph/ng_source.c
+++ b/sys/netgraph/ng_source.c
@@ -42,17 +42,17 @@ __FBSDID("$FreeBSD$");
/*
* This node is used for high speed packet geneneration. It queues
- * all data recieved on it's 'input' hook and when told to start via
- * a control message it sends the packets out it's 'output' hook. In
- * this way this node can be preloaded with a packet stream which is
- * continuously sent.
+ * all data recieved on its 'input' hook and when told to start via
+ * a control message it sends the packets out its 'output' hook. In
+ * this way this node can be preloaded with a packet stream which it
+ * can then send continuously as fast as possible.
*
* Currently it just copies the mbufs as required. It could do various
* tricks to try and avoid this. Probably the best performance would
* be achieved by modifying the appropriate drivers to be told to
* self-re-enqueue packets (e.g. the if_bge driver could reuse the same
* transmit descriptors) under control of this node; perhaps via some
- * flag in the mbuf or some such. The node would peak at an appropriate
+ * flag in the mbuf or some such. The node could peek at an appropriate
* ifnet flag to see if such support is available for the connected
* interface.
*/
@@ -75,7 +75,6 @@ __FBSDID("$FreeBSD$");
#define NG_SOURCE_INTR_TICKS 1
#define NG_SOURCE_DRIVER_IFQ_MAXLEN (4*1024)
-
/* Per hook info */
struct source_hookinfo {
hook_p hook;
@@ -116,7 +115,6 @@ static int ng_source_send (sc_p, int, int *);
static int ng_source_store_output_ifp(sc_p sc,
struct ng_mesg *msg);
-
/* Parse type for timeval */
static const struct ng_parse_struct_field ng_source_timeval_type_fields[] = {
{ "tv_sec", &ng_parse_int32_type },
OpenPOWER on IntegriCloud