[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
System halt when out of network buffers
- Date: Wed, 19 Jan 2000 10:08:00 -0600
- From: janovetz at tempest.ece.uiuc.edu (Jake Janovetz)
- Subject: System halt when out of network buffers
Nick,
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.
Cheers,
Jake
On Wed, Jan 19, 2000 at 03:22:26PM -0000, Nick.SIMON at syntegra.bt.co.uk 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.
>
> TIA
>
>
> -- Nick Simon
--
janovetz at uiuc.edu | 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.