mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] : ir257_irtty_stats.diff
@ 2002-04-03  2:25 Jean Tourrilhes
  0 siblings, 0 replies; only message in thread
From: Jean Tourrilhes @ 2002-04-03  2:25 UTC (permalink / raw)
  To: Linus Torvalds, irda-users, Linux kernel mailing list, Jeff Garzik

ir257_irtty_stats.diff :
----------------------
        <Following patch from Frank Becker>
	o [FEATURE] Update dev tx stats at the right time

diff -u -p linux/drivers/net/irda/irtty.d5.c linux/drivers/net/irda/irtty.c
--- linux/drivers/net/irda/irtty.d5.c	Thu Mar 21 15:28:08 2002
+++ linux/drivers/net/irda/irtty.c	Thu Mar 21 15:29:38 2002
@@ -713,8 +713,6 @@ static void irtty_write_wakeup(struct tt
 
 		self->tx_buff.data += actual;
 		self->tx_buff.len  -= actual;
-
-		self->stats.tx_packets++;		      
 	} else {		
 		/* 
 		 *  Now serial buffer is almost free & we can start 
@@ -722,6 +720,8 @@ static void irtty_write_wakeup(struct tt
 		 */
 		IRDA_DEBUG(5, __FUNCTION__ "(), finished with frame!\n");
 		
+		self->stats.tx_packets++;		      
+
 		tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
 
 		if (self->new_speed) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-03  2:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-03  2:25 [PATCH] : ir257_irtty_stats.diff Jean Tourrilhes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®