This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bsd_tcpip statistics collection patch


Sorry if I'm committing a faux pas, I'm new at this - do I send this here? I
tried posting on ecos-discuss, but no response.

The attached patch fixes the statistics collection for the BSD network
stack, which doesn't build. As far as I can tell, "stats_in_cksum" doesn't
exist in the BSD stack. 

-- Philip Keller

8<----------------

***************
*** 147,153 ****
  static struct net_stats  stats_malloc, stats_free,
      stats_memcpy, stats_memset,
      stats_mbuf_alloc, stats_mbuf_free, stats_cluster_alloc;
- extern struct net_stats stats_in_cksum;

  // Display a number of ticks as microseconds
  // Note: for improved calculation significance, values are kept in
ticks*1000
--- 147,152 ----
***************
*** 193,199 ****
      show_net_stats(&stats_mbuf_alloc,    "Mbuf alloc");
      show_net_stats(&stats_mbuf_free,     "Mbuf free");
      show_net_stats(&stats_cluster_alloc, "Cluster alloc");
-     show_net_stats(&stats_in_cksum,      "Checksum");
      show_net_stats(&stats_memcpy,        "Net memcpy");
      show_net_stats(&stats_memset,        "Net memset");
  }
--- 192,197 ----



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]