<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: Re: Maximum devices
From: Olaf Titz <olaf,AT,bigred,DOT,inka,DOT,de>
Date: Thu, 19 Oct 2000 14:14:07 +0200
In-reply-to: <Pine.LNX.4.21.0010171039500.12706-100000@newt.meridian.redhat.com>

> I have a need for many cipe connections to a server.  I went in and
> changed the maximum number of devices from 100 to 300 in the code.  We
> allow the devices to assigned dynamically.  This worked up until cipcb180
> then dynamically it won't assign anymore.  If I put in device cipcb181 in
> the options file it will bring up the device.  Does anyone have any ideas
> how to make it work dynamically?

I can't reproduce that. I'd need more info on exact kernel and CIPE
version, and please try the attached patch which emits a warning in
case that this is a simple kmalloc failure.

Olaf

--- device.c    2000/10/06 23:15:05     1.39
+++ device.c    2000/10/19 11:11:36
@@ -510,6 +504,7 @@
     dprintk(DEB_CALL, (KERN_INFO DEVNAME ": cipe_alloc_dev %d\n", n));
     if (!(cc=kmalloc(sizeof(struct cipe_ctrl), GFP_KERNEL))) {
         cipe_ctrls[n]=NULL;
+       printk(KERN_ERR DEVNAME ": failed to allocate device %d\n", n);
         return -ENOMEM;
     }

=== end of patch ===





<< | Thread Index | >> ]    [ << | Date Index | >> ]