Let's not forget to update the ATM transmission statistics! And let's not pretend to support AAL0 when we don't.
speedtouch.c | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-) diff -Nru a/drivers/usb/misc/speedtouch.c b/drivers/usb/misc/speedtouch.c --- a/drivers/usb/misc/speedtouch.c Wed Feb 5 17:47:09 2003 +++ b/drivers/usb/misc/speedtouch.c Wed Feb 5 17:47:09 2003 @@ -610,6 +610,9 @@ else kfree_skb (skb); instance->current_skb = NULL; + + if (vcc->stats) + atomic_inc (&vcc->stats->tx); } goto made_progress; @@ -732,14 +735,6 @@ instance->usb_dev->bus->bus_name, instance->usb_dev->devpath, atm_dev->esi[0], atm_dev->esi[1], atm_dev->esi[2], atm_dev->esi[3], atm_dev->esi[4], atm_dev->esi[5]); - - if (!left--) - return sprintf (page, "AAL0: tx %d ( %d err ), rx %d ( %d err, %d drop )\n", - atomic_read (&atm_dev->stats.aal0.tx), - atomic_read (&atm_dev->stats.aal0.tx_err), - atomic_read (&atm_dev->stats.aal0.rx), - atomic_read (&atm_dev->stats.aal0.rx_err), - atomic_read (&atm_dev->stats.aal0.rx_drop)); if (!left--) return sprintf (page, "AAL5: tx %d ( %d err ), rx %d ( %d err, %d drop )\n", ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel