System halt when out of network buffers

Jake Janovetz janovetz at
Wed Jan 19 16:08:00 UTC 2000


   I had a similar problem when my board was _generating_ lots of
packets for a certain protocol.  My solution was to increase the
mbufs.  It was really the only solution because I could not lose 
those packets.

   However, I agree that it is better to lose packets than rtems_panic.


On Wed, Jan 19, 2000 at 03:22:26PM -0000, Nick.SIMON at wrote:
> Dear chaps,
> rtems_glue.c kmem_malloc contains:
>         if (networkDaemonTid) {
>                 if (waitflag == M_WAITOK)
>                         rtems_panic (
> "Network mbuf space can not be enlarged after rtems_bsdnet_initialize()
> has\n"
> "returned.  Enlarge the initial mbuf/cluster size in rtems_bsdnet_config.");
>                 return 0;
>         }
> This means that if the network throws lots of data at us, we stop.  This is
> quite easily done to my 50MHz mpc860 board using ping -f.
> It would be better to lose packets than to croak - has anyone crossed this
> bridge already?  Comments, patches etc. gratefully received.
> -- Nick Simon 

   janovetz at    | How can it be that mathematics, being after all a 
 University of Illinois | product of human thought independent of experience,
                        | is so admirably adapted to the objects of reality?
        PP-ASEL         |                                  - Albert Einstein

Disclaimer: The policies of this University certainly do not reflect my
            own opinions, objectives, or agenda.

More information about the users mailing list