Re: [RFC][PATCH 0/9] Network receive deadlock prevention for NBD

2006-08-11 Thread Rik van Riel
Peter Zijlstra wrote: You say "critical resource isolation", but it is not the case - consider NFS over UDP - remote side will not stop sending just because receiving socket code drops data due to OOM, or IPsec or compression, which can requires reallocation. There is no "critical resource iso

Re: [2.6.18-rc4] lockdep warning at inet6_addr_add

2006-08-11 Thread Herbert Xu
Luca <[EMAIL PROTECTED]> wrote: > I get a warning from lockdep during boot; 2.6.18-rc3 don't have this > warning. I see a similar report in the archive (I haven't found time to > test the patch...): > > http://marc.theaimsgroup.com/?l=linux-netdev&m=115506258902757&w=2 It's the same issue. Thank

Re: [PATCH 1/4] [NETLINK]: Handle NLM_F_ECHO in netlink_rcv_skb()

2006-08-11 Thread Herbert Xu
Alexey Kuznetsov <[EMAIL PROTECTED]> wrote: > > Probably, unicasts sent due to NLM_F_ECHO should somehow override > rcvbuf limits. Actually I think the only safe solution is to allocate a separate socket for multicast messages. In other words, if you want reliable unicast reception on a socket,

Re: [PATCH] CONFIG_PM=n slim: drivers/net/*

2006-08-11 Thread Andrew Morton
On Sat, 12 Aug 2006 06:30:14 +0400 Alexey Dobriyan <[EMAIL PROTECTED]> wrote: > On Fri, Aug 11, 2006 at 06:49:43PM -0700, Andrew Morton wrote: > > On Sat, 12 Aug 2006 04:46:23 +0400 > > Alexey Dobriyan <[EMAIL PROTECTED]> wrote: > > > > > +#ifdef CONFIG_PM > > > static int amd8111e_suspend(struct

Re: [PATCH] CONFIG_PM=n slim: drivers/net/*

2006-08-11 Thread Alexey Dobriyan
On Fri, Aug 11, 2006 at 06:49:43PM -0700, Andrew Morton wrote: > On Sat, 12 Aug 2006 04:46:23 +0400 > Alexey Dobriyan <[EMAIL PROTECTED]> wrote: > > > +#ifdef CONFIG_PM > > static int amd8111e_suspend(struct pci_dev *pci_dev, pm_message_t state) > > { > > struct net_device *dev = pci_get_drvd

Re: [PATCH] CONFIG_PM=n slim: drivers/net/*

2006-08-11 Thread Andrew Morton
On Sat, 12 Aug 2006 04:46:23 +0400 Alexey Dobriyan <[EMAIL PROTECTED]> wrote: > +#ifdef CONFIG_PM > static int amd8111e_suspend(struct pci_dev *pci_dev, pm_message_t state) > { > struct net_device *dev = pci_get_drvdata(pci_dev); > @@ -1873,7 +1879,7 @@ static int amd8111e_resume(struc

[PATCH] CONFIG_PM=n slim: drivers/net/*

2006-08-11 Thread Alexey Dobriyan
Compile out dead code for CONFIG_PM=n users. Signed-off-by: Alexey Dobriyan <[EMAIL PROTECTED]> --- drivers/net/amd8111e.c | 10 +- drivers/net/b44.c |4 drivers/net/bnx2.c |4 drivers/net/tg3.c |4 4 files changed, 21 insertions(+), 1 deletion(

Re: skb_shared_info()

2006-08-11 Thread Herbert Xu
On Fri, Aug 11, 2006 at 05:27:30PM -0700, David Miller wrote: > > E1000 wants 16K buffers for jumbo MTU settings. > > The reason is that the chip can only handle power-of-2 buffer > sizes, and next hop from 9K is 16K. > > It is not possible to tell the chip to only accept 9K packets, you > must

Re: skb_shared_info()

2006-08-11 Thread David Miller
From: Alexey Kuznetsov <[EMAIL PROTECTED]> Date: Fri, 11 Aug 2006 18:00:19 +0400 > > The e1000 issue is just one example of this, another > > What is this issue? E1000 wants 16K buffers for jumbo MTU settings. The reason is that the chip can only handle power-of-2 buffer sizes, and next hop fro

Re: [DECNET] Fix to decnet rules compare function

2006-08-11 Thread David Miller
From: Steven Whitehouse <[EMAIL PROTECTED]> Date: Fri, 11 Aug 2006 16:54:06 +0100 > Here is a fix to the DECnet rules compare function where we used > 32bit values rather than 16bit values. Spotted by Patrick McHardy. > > Cc: Patrick McHardy <[EMAIL PROTECTED]> > Cc: Patrick Caulfield <[EMAIL PRO

Re: [DECNET] Fix to multiple tables routing

2006-08-11 Thread David Miller
From: Steven Whitehouse <[EMAIL PROTECTED]> Date: Fri, 11 Aug 2006 15:27:42 +0100 > Here is a fix to Patrick McHardy's increase number of routing tables patch > for DECnet. I did just test this and it appears to be working fine with > this patch. > > Cc: Patrick McHardy <[EMAIL PROTECTED]> > Cc:

Re: [PATCH] netdev: change name length

2006-08-11 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Fri, 11 Aug 2006 15:13:29 -0700 > Some improvements to robust name interface. These API's are safe > now by convention, but it is worth providing some safety checks > against future bugs. > > Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>

[PATCH] netdev: change name length

2006-08-11 Thread Stephen Hemminger
Some improvements to robust name interface. These API's are safe now by convention, but it is worth providing some safety checks against future bugs. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- net/core/dev.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) --- net-

Re: [PATCH 4/6] ehea: header files

2006-08-11 Thread Anton Blanchard
> --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea.h 1969-12-31 > +extern void exit(int); Should be able to remove that prototype :) Anton - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.k

Re: [PATCH 3/6] ehea: queue management

2006-08-11 Thread Anton Blanchard
Hi, > --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea_ethtool.c 1969-12-31 > +static void netdev_get_pauseparam(struct net_device *dev, > + struct ethtool_pauseparam *pauseparam) > +{ > + printk("get pauseparam\n"); > +} There are a number of stubbed out e

Re: [PATCH 1/4] [NETLINK]: Handle NLM_F_ECHO in netlink_rcv_skb()

2006-08-11 Thread Thomas Graf
* Alexey Kuznetsov <[EMAIL PROTECTED]> 2006-08-11 19:35 > Well, tc was supposed to use it, but this did not happen and > it remained deficient. Makes sense, especially for auto generated handles. I've been listening to the notifications on a separate socket for this purpose. It would make sense ho

Re: [PATCH 4/6] ehea: header files

2006-08-11 Thread Anton Blanchard
Hi, > drivers/net/ehea/ehea.h| 452 > +#define EHEA_DRIVER_NAME "IBM eHEA" You are using this for ethtool get_drvinfo. Im not sure if it should match the module name, and I worry about having a space in the name. Any ideas on what we should be doing here? > +#define NET_IP_ALIGN 0 S

Re: [PATCH 2/6] ehea: pHYP interface

2006-08-11 Thread Nathan Lynch
Hi- Jan-Bernd Themann wrote: > +static inline long ehea_hcall_9arg_9ret(unsigned long opcode, > + unsigned long arg1, > + unsigned long arg2, > + unsigned long arg3, > +

Re: [PATCH 2/6] ehea: pHYP interface

2006-08-11 Thread Nathan Lynch
Nathan Lynch wrote: > Hope all the callers of this function are in non-atomic context (but I > wasn't able to find any callers?). Never mind, I somehow missed the users of ehea_hcall_9arg_9ret in this patch, sorry. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of

Re: [PATCH 2/6] ehea: pHYP interface

2006-08-11 Thread Anton Blanchard
Hi, > --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea_phyp.c1969-12-31 > 16:00:00.0 -0800 > +u64 ehea_h_alloc_resource_eq(const u64 hcp_adapter_handle, ... > +u64 hipz_h_reregister_pmr(const u64 adapter_handle, ... > +static inline int hcp_galpas_ctor(struct h_galpas *galpas, B

Re: [PATCH 1/6] ehea: interface to network stack

2006-08-11 Thread Anton Blanchard
Hi, > --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea_main.c1969-12-31 > +#define DEB_PREFIX "main" Doesnt appear to be used. > +static struct net_device_stats *ehea_get_stats(struct net_device *dev) ... > + cb2 = kzalloc(H_CB_ALIGNMENT, GFP_KERNEL); I cant see where this gets fr

Re: [PATCH 0/4]: powerpc/cell spidernet ethernet driver fixes

2006-08-11 Thread Arnd Bergmann
On Friday 11 August 2006 21:31, Linas Vepstas wrote: > I put my name at the top when I was the primary author. > I put Jim's name at the top when he was the primary author. > > Both names are there because I sat in Jim's office and used > his keyboard. I got him to compile and run the tests on >

[PATCH -mm] constify Tigon3 ether firmware structs

2006-08-11 Thread Andreas Mohr
Constify largish areas of firmware data in Tigon3 ethernet driver. non-const: lsmod: tg3 101404 0 objdump -x: .rodata 03e8 .data 4a0c ls -l: -rw-r--r-- 1 root root 114404 2006-08-19 21:36 drivers/net/tg3.ko const: lsmod: tg3 101404 0 objdump -x

Re: [3/4] kevent: AIO, aio_sendfile() implementation.

2006-08-11 Thread Ulrich Drepper
Sébastien Dugué wrote: >aio completion notification I looked over this now but I don't think I understand everything. Or I don't see how it all is integrated. And no, I'm not looking at the proposed glibc code since would mean being tainted. > Details: > --- > > A st

Re: [PATCH 4/4]: powerpc/cell spidernet ethtool -i version number info.

2006-08-11 Thread Linas Vepstas
Hi Olof, Olof Johansson <[EMAIL PROTECTED]> writes: > On Fri, Aug 11, 2006 at 12:11:17PM -0500, Linas Vepstas wrote: > > > This patch adds version information as reported by > > ethtool -i to the Spidernet driver. > > Why does a driver that's in the mainline kernel need to have a version > num

Re: [PATCH 0/4]: powerpc/cell spidernet ethernet driver fixes

2006-08-11 Thread Linas Vepstas
On Fri, Aug 11, 2006 at 07:44:39PM +0200, Sam Ravnborg wrote: > > > > These have been well-tested over the last few weeks. Please apply. > Hi Linas. > Just noticed a nit-pick detail. > The general rule is to add your Signed-off-by: at the bottom of the > patch, so the top-most Signed-of-by: is al

Re: [PATCH 4/4]: powerpc/cell spidernet ethtool -i version number info.

2006-08-11 Thread Olof Johansson
On Fri, Aug 11, 2006 at 12:11:17PM -0500, Linas Vepstas wrote: > This patch adds version information as reported by > ethtool -i to the Spidernet driver. Why does a driver that's in the mainline kernel need to have a version number besides the kernel version? I can understand it for drivers lik

Re: [PATCH 0/4]: powerpc/cell spidernet ethernet driver fixes

2006-08-11 Thread Sam Ravnborg
On Fri, Aug 11, 2006 at 12:03:37PM -0500, Linas Vepstas wrote: > > The following series of patches implement some fixes and performance > improvements for the Spedernet ethernet device driver. The high point > of the patch series is some code to implement a low-watermark interrupt > on the transmi

Re: lockdep rt2500usb report

2006-08-11 Thread Ivo van Doorn
On Friday 11 August 2006 10:34, Johannes Berg wrote: > This is running wireless-dev from yesterday. All I did was plug in a > rt2500usb device into a usb port on a freshly booted system. I have a > feeling that this is could be one of the problems reported earlier with > the d80211 stack, but I

Re: [PATCH 0/4]: powerpc/cell spidernet ethernet driver fixes

2006-08-11 Thread jschopp
Linas Vepstas wrote: The following series of patches implement some fixes and performance improvements for the Spedernet ethernet device driver. The high point of the patch series is some code to implement a low-watermark interrupt on the transmit queue. The bundle of patches raises transmit perf

[PATCH 3/4]: powerpc/cell spidernet stop error printing patch.

2006-08-11 Thread Linas Vepstas
Turn off mis-interpretation of the queue-empty interrupt status bit as an error. This bit is set as a part of the previous low-watermark patch. Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> Signed-off-by: James K Lewis <[EMAIL PROTECTED]> Cc: Utz Bacher <[EMAIL PROTECTED]> Cc: Jens Osterkamp

[PATCH 4/4]: powerpc/cell spidernet ethtool -i version number info.

2006-08-11 Thread Linas Vepstas
This patch adds version information as reported by ethtool -i to the Spidernet driver. Signed-off-by: James K Lewis <[EMAIL PROTECTED]> Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> Cc: Utz Bacher <[EMAIL PROTECTED]> Cc: Jens Osterkamp <[EMAIL PROTECTED]> drivers/net/spider_net.c

[PATCH 1/4]: powerpc/cell spidernet burst alignment patch.

2006-08-11 Thread Linas Vepstas
This patch increases the Burst Address alignment from 64 to 1024 in the Spidernet driver. This improves transmit performance for large packets from about 100Mbps to 300-400Mbps. Signed-off-by: James K Lewis <[EMAIL PROTECTED]> Signed-off-by: Linas Vepstas <[EMAIL PROTECTED]> Cc: Utz Bacher <[EMA

[PATCH 2/4]: powerpc/cell spidernet low watermark patch.

2006-08-11 Thread Linas Vepstas
Implement basic low-watermark support for the transmit queue. The basic idea of a low-watermark interrupt is as follows. The device driver queues up a bunch of packets for the hardware to transmit, and then kicks he hardware to get it started. As the hardware drains the queue of pending, untrans

[PATCH 0/4]: powerpc/cell spidernet ethernet driver fixes

2006-08-11 Thread Linas Vepstas
The following series of patches implement some fixes and performance improvements for the Spedernet ethernet device driver. The high point of the patch series is some code to implement a low-watermark interrupt on the transmit queue. The bundle of patches raises transmit performance from some emb

Re: [IPROUTE]: Fix struct alignment with cris architecture

2006-08-11 Thread Stephen Hemminger
On Thu, 10 Aug 2006 20:25:40 -0400 Andy Gay <[EMAIL PROTECTED]> wrote: > [IPROUTE]: Fix struct alignment with cris architecture > > gcc for the cris arch does not pad structures to the next multiple of 4 > bytes, as the i386 gcc does. > > This causes errors like this when displaying xfrm policie

[2.6.18-rc4] lockdep warning at inet6_addr_add

2006-08-11 Thread Luca
Hi, I get a warning from lockdep during boot; 2.6.18-rc3 don't have this warning. I see a similar report in the archive (I haven't found time to test the patch...): http://marc.theaimsgroup.com/?l=linux-netdev&m=115506258902757&w=2 but my stacktrace is a bit different, so I'm reporting this one t

Re: [PATCH 3/6] ehea: queue management

2006-08-11 Thread Thomas Klein
Mikey, first of all thanks a lot for the effort you invested to review our code. We're quite happy about the improvements we made due to your comments. See our answers below. Kind regards Thomas Michael Neuling wrote: Please add comments to make the code more readable, especially at the star

[DECNET] Fix to decnet rules compare function

2006-08-11 Thread Steven Whitehouse
Here is a fix to the DECnet rules compare function where we used 32bit values rather than 16bit values. Spotted by Patrick McHardy. Cc: Patrick McHardy <[EMAIL PROTECTED]> Cc: Patrick Caulfield <[EMAIL PROTECTED]> Signed-off-by: Steven Whitehouse <[EMAIL PROTECTED]> diff --git a/net/decnet/dn_

Re: [take8 2/2] kevent: poll/select() notifications. Timer notifications.

2006-08-11 Thread Andrew Morton
On Fri, 11 Aug 2006 12:40:10 +0400 Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > > poll/select() notifications. Timer notifications. > > This patch includes generic poll/select and timer notifications. > > kevent_poll works simialr to epoll and has the same issues (callback > is invoked not fro

Re: [PATCH 1/4] [NETLINK]: Handle NLM_F_ECHO in netlink_rcv_skb()

2006-08-11 Thread Alexey Kuznetsov
Hello! > I get your point and I see the value. Unfortunately, probably due to > lack of documentation, this feature isn't used by any applications I > know of. Well, tc was supposed to use it, but this did not happen and it remained deficient. > We even put in the hacks to make identification o

Re: [DECNET] Fix to multiple tables routing

2006-08-11 Thread Steven Whitehouse
Hi, On Fri, Aug 11, 2006 at 05:22:17PM +0200, Patrick McHardy wrote: > Steven Whitehouse wrote: > > Here is a fix to Patrick McHardy's increase number of routing tables patch > > for DECnet. I did just test this and it appears to be working fine with > > this patch. > > > > Cc: Patrick McHardy <[

Re: [DECNET] Fix to multiple tables routing

2006-08-11 Thread Patrick McHardy
Steven Whitehouse wrote: > Here is a fix to Patrick McHardy's increase number of routing tables patch > for DECnet. I did just test this and it appears to be working fine with > this patch. > > Cc: Patrick McHardy <[EMAIL PROTECTED]> > Cc: Patrick Caulfield <[EMAIL PROTECTED]> > Signed-off-by: Ste

[Patch/RfC] remove broken URLs from net drivers' output

2006-08-11 Thread Markus Dahms
Remove broken URLs (www.scyld.com) from network drivers' logging output. URLs in comments and other strings are left intact. Signed-off-by: Markus Dahms <[EMAIL PROTECTED]> --- I was tired of always seeing an URL not working anymore on initialization of 3c59x and natsemi. So this is an attempt t

[DECNET] Fix to multiple tables routing

2006-08-11 Thread Steven Whitehouse
Here is a fix to Patrick McHardy's increase number of routing tables patch for DECnet. I did just test this and it appears to be working fine with this patch. Cc: Patrick McHardy <[EMAIL PROTECTED]> Cc: Patrick Caulfield <[EMAIL PROTECTED]> Signed-off-by: Steven Whitehouse <[EMAIL PROTECTED]> di

Re: sender throttling for unreliable protocols not garuanteed? (different units in sock->wmem_alloc and net_devive->tx_queue_len)

2006-08-11 Thread Alexey Kuznetsov
Hello! > I'd be interested in any opinions on the above mentioned effect. Everything is right, it is exactly how it works. Well, use another qdisc, which counts in bytes rather than in frames (f.e. bfifo) Set sndbuf small enough. And if sndbuf*#senders is still too large, you have to use fair

Re: skb_shared_info()

2006-08-11 Thread Alexey Kuznetsov
Hello! >> management schemes and to just wrap SKB's around >> arbitrary pieces of data. + > and something clever like a special page_offset encoding > means "use data, not page". But for what purpose do you plan to use it? > The e1000 issue is just one example of this, another What is this iss

[RFC PPP]: carrier/operstate support

2006-08-11 Thread Patrick McHardy
[PPP]: carrier/operstate support Add support for setting carrier state and operstate of ppp devices. The patch works as follows: - Initially, ppp devices come up with carrier off and npmode set to NPMODE_DROP - In non-demand mode (dialin or permanent connection), when the IP*CP protocols trans

Re: [PATCH 3/6] ehea: queue management

2006-08-11 Thread Jan-Bernd Themann
Hi, +#define EHEA_EQE_SM_MECH_NUMBER EHEA_BMASK_IBM(48, 55) +#define EHEA_EQE_SM_PORT_NUMBER EHEA_BMASK_IBM(56, 63) + +struct ehea_eqe { + u64 entry; +}; ehea_ege.. what is that and why a struct if only 1 item? Comments please. There are send / receive queue elements (ehea_swqe

Re: the mystery that is sock_fasync

2006-08-11 Thread Alexey Kuznetsov
Hello! > Did I miss some way that multiple file objects can point to the > same socket inode? Absolutely prohibited. Always was. Apparently, sock_fasync() was cloned from tty_fasync(), that's the only reason why it is so creepy. Alexey - To unsubscribe from this list: send the line "unsubscribe

sender throttling for unreliable protocols not garuanteed? (different units in sock->wmem_alloc and net_devive->tx_queue_len)

2006-08-11 Thread Steffen Maier
Hello, a while ago I wrote a simple network load generator to inject datagrams or frames at maximum rate into a network. Maybe I was mistaken but I expected the socket's send operation to block, if the transmitting network device becomes saturated (no matter if using UDP or PF_PACKET). However,

Re: [PATCH 1/6] ehea: interface to network stack

2006-08-11 Thread Jan-Bernd Themann
Hi Christian, thanks for your comments, we'll send an updated patch set soon. Jan-Bernd Christian Borntraeger wrote: Hi Jan-Bernd, I had some minutes, here are some finding after a quick look. On Wednesday 09 August 2006 10:38, you wrote: +static struct net_device_stats *ehea_get_stats(stru

Re: the mystery that is sock_fasync

2006-08-11 Thread David Miller
From: David Miller <[EMAIL PROTECTED]> Date: Fri, 11 Aug 2006 03:15:16 -0700 (PDT) > If my analysis is correct we can incredibly simplify sock_fasync(). I've also found more bugs in sock_fasync(), it's a real can of worms :-) It deviates from the return value policies used by othe file_ops->fasy

race condition leading to segfault in d80211

2006-08-11 Thread Johannes Berg
What was that about locking not having problems? :P I was writing a small program that (using ioctls) * creates a new interface (using sysfs) * sets the interface to monitor mode * sets IFF_UP * (1) * sets IFF_DOWN * (2) * destroy interface (using sysfs) That was fine, but then I wanted to see

Re: [PATCH 3/4] [NETLINK]: Dont set socket error for failed event notifications

2006-08-11 Thread David Miller
From: Thomas Graf <[EMAIL PROTECTED]> Date: Fri, 11 Aug 2006 12:38:22 +0200 > Looks good. You could have used nla_memcpy() instead of > memcpy() but there is no functional difference in this case. Right, because the code already verifies that the attribute length is at least dev->addr_len, and th

Re: [PATCH 3/4] [NETLINK]: Dont set socket error for failed event notifications

2006-08-11 Thread Thomas Graf
* David Miller <[EMAIL PROTECTED]> 2006-08-10 23:02 > Thomas, there was a conflict which I did expect since I added > all the 2.6.18 bug fixes into the tree. The conflict is for > your netlink conversion of the iflink stuff. > > I had to fix the -stable tree IFLA_ADDRESS handling because > dev->s

Re: the mystery that is sock_fasync

2006-08-11 Thread David Miller
From: Evgeniy Polyakov <[EMAIL PROTECTED]> Date: Fri, 11 Aug 2006 14:28:20 +0400 > On Fri, Aug 11, 2006 at 03:15:16AM -0700, David Miller ([EMAIL PROTECTED]) > wrote: > > Did I miss some way that multiple file objects can point to the > > same socket inode? > > What about dup and pipe? Dup make

Re: the mystery that is sock_fasync

2006-08-11 Thread Evgeniy Polyakov
On Fri, Aug 11, 2006 at 03:15:16AM -0700, David Miller ([EMAIL PROTECTED]) wrote: > Did I miss some way that multiple file objects can point to the > same socket inode? What about dup and pipe? -- Evgeniy Polyakov - To unsubscribe from this list: send the line "unsubscribe netdev" in th

the mystery that is sock_fasync

2006-08-11 Thread David Miller
I was studying sock_fasync() and it definitely has a bunch of questionable issues. Well firstly, it duplicates fasync_helper() entirely. The only difference is that sock_fasync() does socket local locking which is better for performance. fasync_helper() uses a global spinlock to protect the fasy

Re: Possible leak of multicast source filter sctructure

2006-08-11 Thread Michal Ruzicka
> Michal, > This looks correct, but I think a better way to do it is: > > in_dev = inetdev_by_index(...) > (void) ip_mc_leave_src() > if (in_dev) { > ip_mc_dec_group() > in_dev_put() > } > > That way, sflist internal

Re: [NET 00/06]: Increase number of possible routing tables

2006-08-11 Thread Thomas Graf
* Michael Tokarev <[EMAIL PROTECTED]> 2006-08-11 10:56 > And while we're at it... How about using table *names* instead of > numbers in kernel too, a-la iptables? Once possible number of tables > is large, and we're using hashes for tables now anyway, keeping a > name inside the table structure w

Re: [PATCH 3/6] ehea: queue management

2006-08-11 Thread Jörn Engel
On Fri, 11 August 2006 09:28:26 +0200, Thomas Klein wrote: > Michael Neuling wrote: > +static inline u32 map_swqe_size(u8 swqe_enc_size) > +static inline u32|map_rwqe_size(u8 rwqe_enc_size) > > > Agreed. Functions were replaced by a single map_wqe_size() function. Just a general thing, t

Re: PATCH Fix bonding active-backup behavior for VLAN interfaces

2006-08-11 Thread Christophe Devriese
On Friday 11 August 2006 08:45, David Miller wrote: > From: Krzysztof Oledzki <[EMAIL PROTECTED]> > Date: Thu, 10 Aug 2006 20:18:23 +0200 (CEST) > > > OK, this patch really solves the bug from my report. Are there any > > chances for similar fix in the net-2.6.19.git? > > I'm still thinking about t

Re: PATCH Fix bonding active-backup behavior for VLAN interfaces

2006-08-11 Thread David Miller
From: Christophe Devriese <[EMAIL PROTECTED]> Date: Fri, 11 Aug 2006 10:50:44 +0200 > What can I do to get you to apply this then ? This patch is about > fixing a bug which is bothering me a lot. You need to be patient while I review the problem. Nothing you say will allow my brain to operate an

lockdep rt2500usb report

2006-08-11 Thread Johannes Berg
This is running wireless-dev from yesterday. All I did was plug in a rt2500usb device into a usb port on a freshly booted system. I have a feeling that this is could be one of the problems reported earlier with the d80211 stack, but I haven't mastered the art of picking through these traces yet

[take8 0/2] kevent: Generic event handling mechanism.

2006-08-11 Thread Evgeniy Polyakov
Generic event handling mechanism. Changes from 'take7' patchset: * new mmap interface (not tested, waiting for other changes to be acked) - use nopage() method to dynamically substitue pages - allocate new page for events only when new added kevent requres it - do not use

[take8 1/2] kevent: Core files.

2006-08-11 Thread Evgeniy Polyakov
Core files. This patch includes core kevent files: - userspace controlling - kernelspace interfaces - initialization - notification state machines Signed-off-by: Evgeniy Polyakov <[EMAIL PROTECTED]> diff --git a/arch/i386/kernel/syscall_table.S b/arch/i386/kernel/syscall_table.S index dd63d

[take8 2/2] kevent: poll/select() notifications. Timer notifications.

2006-08-11 Thread Evgeniy Polyakov
poll/select() notifications. Timer notifications. This patch includes generic poll/select and timer notifications. kevent_poll works simialr to epoll and has the same issues (callback is invoked not from internal state machine of the caller, but through process awake). Timer notifications can b

[RFC] d80211 LED handling

2006-08-11 Thread Johannes Berg
Attached (sorry, can't seem to figure out how to convince thunderbird to not mangle things under windows) is a patch to make d80211 have some LED triggers. However, I'm not sure where I should call the _init and _exit functions and if I really should be using the local struct. It seems I shoul

crash with bcm43xx_dscape and multiple interfaces

2006-08-11 Thread Johannes Berg
Hey, I managed to crash it again :P Here's approximately what I did: johannes:/home/johannes# ifconfig wlan0 down johannes:/home/johannes# cd /sys/class/ieee80211/phy0/ johannes:/sys/class/ieee80211/phy0# echo -n moni0 > add_iface johannes:/sys/class/ieee80211/phy0# iwconfig wlan0 mode mast

Re: [NET 02/06]: Introduce RTA_TABLE/FRA_TABLE attributes

2006-08-11 Thread David Miller
From: Michael Tokarev <[EMAIL PROTECTED]> Date: Fri, 11 Aug 2006 11:02:43 +0400 > Patrick McHardy wrote: > > --- a/include/linux/rtnetlink.h > > +++ b/include/linux/rtnetlink.h > > > +static inline u32 rtm_get_table(struct rtattr **rta, u8 table) > > +{ > > + return RTA_GET_U32(rta[RTA_TABLE-1]

Re: [take6 1/3] kevent: Core files.

2006-08-11 Thread Evgeniy Polyakov
On Fri, Aug 11, 2006 at 12:04:54AM -0700, Andrew Morton ([EMAIL PROTECTED]) wrote: > > This area can be decreased down to 70mb by reducing amount of > > information placed into the buffer (only user's data and flags) without > > additional hints. > > > > 70MB is still very bad, naturally. Actua

Re: [PATCH 3/6] ehea: queue management

2006-08-11 Thread Thomas Klein
Michael Neuling wrote: +static inline u32 map_swqe_size(u8 swqe_enc_size) +{ + return 128 << swqe_enc_size; +}^ + | +static inline u32|map_rwqe_size(u8 rwqe_enc_size) +{| + return 128 << rwqe_enc_size;

Re: [take6 1/3] kevent: Core files.

2006-08-11 Thread Andrew Morton
On Fri, 11 Aug 2006 10:30:21 +0400 Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > On Thu, Aug 10, 2006 at 11:23:40PM -0700, Andrew Morton ([EMAIL PROTECTED]) > wrote: > > On Fri, 11 Aug 2006 10:15:35 +0400 > > Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > > > > > On Thu, Aug 10, 2006 at 05:56:39P

Re: [NET 02/06]: Introduce RTA_TABLE/FRA_TABLE attributes

2006-08-11 Thread Michael Tokarev
Patrick McHardy wrote: > --- a/include/linux/rtnetlink.h > +++ b/include/linux/rtnetlink.h > +static inline u32 rtm_get_table(struct rtattr **rta, u8 table) > +{ > + return RTA_GET_U32(rta[RTA_TABLE-1]); > +rtattr_failure: > + return table; > +} > + What's that ? ;) /mjt - To unsubscrib

Re: [NET 00/06]: Increase number of possible routing tables

2006-08-11 Thread Michael Tokarev
David Miller wrote: > From: Michael Tokarev <[EMAIL PROTECTED]> [] >>> - Use u32 for routing table IDs everywhere inside the kernel >> Just out of curiocity: why current limit of 2^31 isn't sufficient? >> Or am I missing the point? > > The current limit is 256 because the table member of the struc

Re: [take6 1/3] kevent: Core files.

2006-08-11 Thread Evgeniy Polyakov
On Thu, Aug 10, 2006 at 11:38:26PM -0700, David Miller ([EMAIL PROTECTED]) wrote: > From: Evgeniy Polyakov <[EMAIL PROTECTED]> > Date: Fri, 11 Aug 2006 10:33:53 +0400 > > > That requires mmap hacks to substitute pages in run-time without user > > notifications. I do not expect it is a good soluti