Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4099fab authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Arnaldo Carvalho de Melo
Browse files

[PKTGEN]: Spelling and white space



Fix some cosmetic issues. Indentation, spelling errors, and some whitespace.

Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarRobert Olsson <robert.olsson@its.uu.se>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@mandriva.com>
parent 2845b63b
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@
 * By design there should only be *one* "controlling" process. In practice 
 * multiple write accesses gives unpredictable result. Understood by "write" 
 * to /proc gives result code thats should be read be the "writer".
 * For pratical use this should be no problem.
 * For practical use this should be no problem.
 *
 * Note when adding devices to a specific CPU there good idea to also assign 
 * /proc/irq/XX/smp_affinity so TX-interrupts gets bound to the same CPU. 
@@ -96,7 +96,7 @@
 * New xmit() return, do_div and misc clean up by Stephen Hemminger 
 * <shemminger@osdl.org> 040923
 *
 * Rany Dunlap fixed u64 printk compiler waring 
 * Randy Dunlap fixed u64 printk compiler waring 
 *
 * Remove FCS from BW calculation.  Lennert Buytenhek <buytenh@wantstofly.org>
 * New time handling. Lennert Buytenhek <buytenh@wantstofly.org> 041213
@@ -244,7 +244,7 @@ struct pktgen_dev {
        __u32 seq_num;
        
        int clone_skb; /* Use multiple SKBs during packet gen.  If this number
                          * is greater than 1, then that many coppies of the same
                          * is greater than 1, then that many copies of the same
                          * packet will be sent before a new packet is allocated.
                          * For instance, if you want to send 1024 identical packets
                          * before creating a new packet, set clone_skb to 1024.
@@ -396,7 +396,7 @@ static inline s64 divremdi3(s64 x, s64 y, int type)

/* End of hacks to deal with 64-bit math on x86 */

/** Convert to miliseconds */
/** Convert to milliseconds */
static inline __u64 tv_to_ms(const struct timeval* tv) 
{
        __u64 ms = tv->tv_usec / 1000;
@@ -425,7 +425,7 @@ static inline __u64 pg_div64(__u64 n, __u64 base)
{
        __u64 tmp = n;
/*
 * How do we know if the architectrure we are running on
 * How do we know if the architecture we are running on
 * supports division with 64 bit base?
 * 
 */
@@ -1702,7 +1702,7 @@ static void spin(struct pktgen_dev *pkt_dev, __u64 spin_until_us)
	start = now = getCurUs();
	printk(KERN_INFO "sleeping for %d\n", (int)(spin_until_us - now));
	while (now < spin_until_us) {
		/* TODO: optimise sleeping behavior */
		/* TODO: optimize sleeping behavior */
		if (spin_until_us - now > jiffies_to_usecs(1)+1)
			schedule_timeout_interruptible(1);
		else if (spin_until_us - now > 100) {