Wolfgang Grandegger wrote: > 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.
I have now updated the rt_mpc52xx_fec driver but I get an oops in dev_seq_printf_stats. It get's called with a bogus dev pointer. Any idea why? Are there some patches missing? Wolfgang. ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ RTnet-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rtnet-developers

