Author Topic: USE_IP_STATS  (Read 4266 times)

Offline twoerner

  • Newbie
  • *
  • Posts: 16
    • View Profile
USE_IP_STATS
« on: July 09, 2007, 11:08:35 PM »
platform: M5223x
app: uTasker sample app V1.3 with SP1-4

I just wanted to point out that simply commenting out '#define USE_IP_STATS' causes the compile to fail. There are 4 places in Hardware\M5223X.c that call fnIncrementEthernetStats(), only one of which is protected by the required '#ifdef USE_IP_STATS'.

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2979
    • View Profile
    • uTasker
Re: USE_IP_STATS
« Reply #1 on: July 09, 2007, 11:54:13 PM »
Hi

You are correct, I can confirm this and have corrected it so that all occurances of fnIncrementEthernetStats() in the M5223X hardware module are removed when USE_IP_STATS is not defined.

I also verified that the other processor projects are not affected.

This counter was added some time back to verify the overrun rate in particular networks when reducing the rx buffer count and with/without the use of smaller rx buffer chaining (configurable by NUMBER_OF_RX_BUFFERS_IN_ETHERNET_DEVICE (6 recommended) and USE_MULTIPLE_BUFFERS (not generally used))

Thanks again.

Mark