changeset 828:a6926bb063e1

* src/net/eth_drv.c: Added calls to cyg_net_show_mbufs() whenever we see an out-of-mbufs problem.
author nickg
date Mon, 17 Mar 2003 18:37:21 +0000
parents e4b01a03c44f
children 639f0c464be5
files packages/io/eth/current/ChangeLog packages/io/eth/current/src/net/eth_drv.c
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/eth/current/ChangeLog
+++ b/packages/io/eth/current/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-14  Nick Garnett  <nickg@calivar.com>
+
+	* src/net/eth_drv.c: Added calls to cyg_net_show_mbufs() whenever
+	we see an out-of-mbufs problem.
+
 2003-03-11  Mark Salter  <msalter@redhat.com>
 
 	* src/stand_alone/eth_drv.c (eth_drv_stop): Uncomment, make non-static,
--- a/packages/io/eth/current/src/net/eth_drv.c
+++ b/packages/io/eth/current/src/net/eth_drv.c
@@ -819,6 +819,9 @@ eth_drv_recv(struct eth_drv_sc *sc, int 
 #ifdef CYGPKG_IO_ETH_DRIVERS_WARN_NO_MBUFS
         START_CONSOLE();
         diag_printf("warning: eth_recv out of MBUFs\n");
+#ifdef CYGDBG_NET_SHOW_MBUFS        
+        cyg_net_show_mbufs();
+#endif
         END_CONSOLE();
 #endif
     }
@@ -854,6 +857,9 @@ eth_drv_recv(struct eth_drv_sc *sc, int 
 #ifdef CYGPKG_IO_ETH_DRIVERS_WARN_NO_MBUFS
                 START_CONSOLE();
                 diag_printf("out of MBUFs [2]");
+#ifdef CYGDBG_NET_SHOW_MBUFS                
+                cyg_net_show_mbufs();
+#endif
                 END_CONSOLE();
 #endif
                 sg_list[sg_len].buf = (CYG_ADDRESS)0;
@@ -872,6 +878,9 @@ eth_drv_recv(struct eth_drv_sc *sc, int 
 #ifdef CYGPKG_IO_ETH_DRIVERS_WARN_NO_MBUFS
                 START_CONSOLE();
                 diag_printf("warning: eth_recv out of MBUFs\n");
+#ifdef CYGDBG_NET_SHOW_MBUFS                
+                cyg_net_show_mbufs();
+#endif
                 END_CONSOLE();
 #endif
                 sg_list[sg_len].buf = (CYG_ADDRESS)0;