Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: >>>> Gilles Chanteperdrix wrote: >>>>> Jens Köhler wrote: >>>>>> Hello all, >>>>>> >>>>>> I am using the rt_8139too.koo network driver. Is there a >>>>>> possibility to get >>>>>> a statistic about received, sent packets and errors? >>>>> Hi, >>>>> >>>>> In case it could be for interest to anyone, here is a patch which adds >>>>> supports for rtnet per-device statistics, and make them accessible >>>>> through rtifconfig. >>>>> >>>>> Note that to make these statistics work, you will have to write a >>>>> per-driver callback, but for most drivers the callback is already >>>>> there, >>>>> you only have to uncomment it. >>>>> >>>>> Note that this patch was extracted from a bunch of other stuff, so, >>>>> there may be some things missing, if it happens and this patch is of >>>>> some interest to you, let me know. >>>> This is definitely an interesting patch, and I would welcome (ie. >>>> merge) this framework + potential driver patches. >>> Ok. I will send the drivers patches, as I said maintaining the stats is >>> already done in most drivers what need to be done is simply to uncomment >>> or implement the function which returns the pointer to the statistics >>> structure, so, the job should not be to hard. >>> >> Here comes the drivers patch. Only e1000 and rt_loopback were left aside >> since they do not do any accounting. > > Thanks, merged. With some pain, though. > > Seems like it also came from an older RTnet version. rt2x00 stuff didn't > build, skipped it. And the rt_mpc52xx_fec bits didn't apply. Wolfgang, > could you have a look at the latter?
I will take care. Hope to find some time towards the end of this week. Thanks, Wolfgang. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ RTnet-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rtnet-developers

