Author Topic: USE_IP_STATS  (Read 10828 times)

Offline twoerner

  • Newbie
  • *
  • Posts: 16
    • View Profile
« 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: 3236
    • View Profile
    • uTasker
« Reply #1 on: July 09, 2007, 11:54:13 PM »

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.