Re: [PATCH] d80211: use list_for_each_entry{,_safe}

2006-08-30 Thread Johannes Berg
On Wed, 2006-08-30 at 08:43 -0700, Jouni Malinen wrote: > Could you please separate cleanup parts (list_for_each changes) from > functional changes (adding locking) to make it easier to review the > patch? Yeah, I guess I should do that. > I would prefer not to hold spinlocks when calling regist

Re: [RFT] sky2: transmit complete alternative

2006-08-30 Thread Andrew Hall
On Thu, 31 Aug 2006 09:22:05 +1000 "Andrew Hall" <[EMAIL PROTECTED]> wrote: Has there been any updates on a fix for the sky2 tx timeout issues? I have been tracking this problem for a while and consistently see this issue when the interface is under heavy load. I'm using 2.6.17.11 but have

Linux UDP Implementation

2006-08-30 Thread Gary Chan
According to the function call udp_sendmsg() in the source file net/ipv4/udp.c (Linux Kernel 2.6.17.11), when an error value is returned from the function ip_append_data() due to local device congestion, say interface queue overflow, pending packets in the queue sk->sk_write_queue are simply f

[PATCH] myri10ge: improve firmware selection

2006-08-30 Thread Brice Goglin
Jeff, Here's a patch to improve the selection on the myri10ge firmware. Please apply to #upstream for 2.6.19. The patch actually raises two concerns: * We might want to add a generic PCI function to get the PCIe link width since some other drivers (at least ipath) do the same. But we probably d

Re: IPSec kernel oops on ppc64

2006-08-30 Thread Paul Mackerras
Herbert Xu writes: > BTW, did you see the "cmpldi r1,..." stuff in the code? That's a typo, > right? Yes it is a typo, but fixing it is lower priority since both r1 and cr1 equal 1. Paul. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PRO

Re: IPSec kernel oops on ppc64

2006-08-30 Thread Herbert Xu
Hi Paul: On Thu, Aug 31, 2006 at 01:22:07PM +1000, Paul Mackerras wrote: > > You missed a couple of 'beqlr' instructions (branch if equal to LR). > I'd be interested to know if it still fails with the patch below. Yes that'd do it. BTW, did you see the "cmpldi r1,..." stuff in the code? That's

Re: IPSec kernel oops on ppc64

2006-08-30 Thread Paul Mackerras
Herbert Xu writes: > Interesting. We were previously off by 28 bytes, now we're off by 8 :) You missed a couple of 'beqlr' instructions (branch if equal to LR). I'd be interested to know if it still fails with the patch below. Thanks, Paul. diff --git a/arch/powerpc/lib/memcpy_64.S b/arch/powe

Re: IPSec kernel oops on ppc64

2006-08-30 Thread Herbert Xu
On Wed, Aug 30, 2006 at 11:36:26AM -0500, Joy Latten wrote: > > I tried the patch on the following: > linux-2.6.17 + patch-2.6.18-rc1 > > The good news is that the pings worked great! > So perhaps ESP is working ok with ICMP. > > But when I tried to do sftp, I still got the oops. > I don't think

Re: IPSec kernel oops on ppc64

2006-08-30 Thread Paul Mackerras
Joy Latten writes: > The good news is that the pings worked great! > So perhaps ESP is working ok with ICMP. > > But when I tried to do sftp, I still got the oops. > I don't think TCP and ESP are working. You're hitting the BUG_ON(len) at line 611 of net/xfrm/xfrm_algo.c. Is that the same thing

[PATCH] WE-21 for bcm43xx (wireless-2.6 git)

2006-08-30 Thread Larry Finger
John, Please apply Jean's patch to wireless-2.6. It should apply cleanly to the version you pushed earlier today (8/30). I have compiled and tested. For complete operation with WE-21, it also needs the patch entitled [PATCH 2.6.18] WE-21 support (core API) at (http://www.spinics.net/lists/netdev

Re: NAPI: netif_rx_reschedule() ??

2006-08-30 Thread Stephen Hemminger
On Wed, 30 Aug 2006 16:31:12 -0700 Roland Dreier <[EMAIL PROTECTED]> wrote: > Stephen> The undo should really be handled by the caller, not in > Stephen> netif_rx_reschedule. The existing interface assumes you > Stephen> have already deducted N from your quota and so it needs > St

Re: NAPI: netif_rx_reschedule() ??

2006-08-30 Thread Roland Dreier
Roland> makes sense -- especially since the caller probably also Roland> deducted N from *budget, and netif_rx_reschedule() doesn't Roland> touch that. Actually, why does undoing the change to quota make sense? Presumably I passed N packets to netif_receive_skb() -- why shouldn't I de

Re: NAPI: netif_rx_reschedule() ??

2006-08-30 Thread Roland Dreier
Stephen> The undo should really be handled by the caller, not in Stephen> netif_rx_reschedule. The existing interface assumes you Stephen> have already deducted N from your quota and so it needs Stephen> to be put back. makes sense -- especially since the caller probably also dedu

re: [RFT] sky2: transmit complete alternative

2006-08-30 Thread Andrew Hall
Has there been any updates on a fix for the sky2 tx timeout issues? I have been tracking this problem for a while and consistently see this issue when the interface is under heavy load. I'm using 2.6.17.11 but have tried .15, .16, .17 and .18rcX all with the same issue - a large amount of (HTTP g

Re: [PATCH] fix sk->sk_filter field access

2006-08-30 Thread Alexey Kuznetsov
Hello! > Really? > > It is used with needlock=0 by DCCP ipv6, for example. This case seems > correct too. What about sk_receive_skb()? dn_queue_skb()? In fact, > there seems to be numerous uses still with needlock=0, all legitimate. Well, not quite legitime. sk_receive_skb() has the same bug

Re: [PATCH] fix sk->sk_filter field access

2006-08-30 Thread David Miller
From: Alexey Kuznetsov <[EMAIL PROTECTED]> Date: Thu, 31 Aug 2006 03:14:06 +0400 > > Let us to fix bugs first, and then consider rewriting the locking. > > To be honest, I think switching to RCU is the simplest bug fix. > At least, it does not require to search where bh_lock_sock() is taken > dn_

Re: NAPI: netif_rx_reschedule() ??

2006-08-30 Thread Stephen Hemminger
On Wed, 30 Aug 2006 15:07:31 -0700 Roland Dreier <[EMAIL PROTECTED]> wrote: > I'm looking at updating IP-over-InfiniBand to use NAPI, and due to the > way IB works, the driver is going to be susceptible to the rotting > packet problem. It seems I'm going to have to call netif_rx_reschedule(). Lo

Re: high latency with TCP connections

2006-08-30 Thread Rick Jones
David Miller wrote: From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Wed, 30 Aug 2006 10:27:27 -0700 Linux TCP implements "Appropriate Byte Count" (ABC) and this penalizes applications that do small sends. The problem is that the other side may be delaying acknowledgments. If receiver doesn'

Re: [PATCH] IP1000A: IC Plus update 2006-08-22

2006-08-30 Thread Francois Romieu
Francois Romieu <[EMAIL PROTECTED]> : [...] > Added: > 0043-ip1000-use-the-new-IRQF_-constants-and-the-dma_-alloc-free-_coherent-AP > I.txt > 0044-ip1000-mixed-case-and-upper-case-removal.txt > 0045-ip1000-add-ipg_-r-w-8-16-32-macros.txt Added: 0046-ip1000-kiss-TxBuffDMAhandle-goodbye.txt 0047-ip1

Dlink PCI/PCMCIA id conflicts

2006-08-30 Thread Stephen Hemminger
It appears that the Dlink DGE-550SX card has this pci_id: vendor = 0x1186, device = 0x4001 (decoded from SysKonnect version of sk98lin driver). According to a couple of places Dlink also uses the same id for the DFE-650TX card. Before I add this to the sky2 driver, I want to make sure not

Re: [PATCH] fix sk->sk_filter field access

2006-08-30 Thread David Miller
From: Alexey Kuznetsov <[EMAIL PROTECTED]> Date: Thu, 31 Aug 2006 02:20:42 +0400 > Current code in tcp_v4_rcv() calls sk_filter() _before_ it takes socket lock. > This happened when LSM patches were applied. Apparently, LSM does not > want to see socket locked in security_sock_rcv_skb(). Ok. > O

Re: [PATCH] fix sk->sk_filter field access

2006-08-30 Thread Alexey Kuznetsov
Hello! > > Function sk_filter() is called from tcp_v{4,6}_rcv() functions with argue > > needlock = 0, while socket is not locked at that moment. In order to avoid > > this and similar issues in the future, use rcu for sk->sk_filter field read > > protection. > > > > Patch is for net-2.6.19 >

NAPI: netif_rx_reschedule() ??

2006-08-30 Thread Roland Dreier
I'm looking at updating IP-over-InfiniBand to use NAPI, and due to the way IB works, the driver is going to be susceptible to the rotting packet problem. It seems I'm going to have to call netif_rx_reschedule(). However I'm confused about a couple of things, and there are only two uses of netif_r

Re: [PATCH 2.6.18] WE-21 for bcm43xx (wireless-2.6 git)

2006-08-30 Thread Jean Tourrilhes
On Wed, Aug 30, 2006 at 02:51:05PM +0200, Michael Buesch wrote: > On Wednesday 30 August 2006 03:12, Jean Tourrilhes wrote: > > Hi, > > > > WE-21 for Broadcom driver and SoftMAC... > > This version is for wireless-2.6 git. > > > > Jean > > > > Signed-off-by: Jean Tour

Re: high latency with TCP connections

2006-08-30 Thread Stephen Hemminger
On Wed, 30 Aug 2006 14:39:55 -0700 (PDT) David Miller <[EMAIL PROTECTED]> wrote: > From: Stephen Hemminger <[EMAIL PROTECTED]> > Date: Wed, 30 Aug 2006 10:27:27 -0700 > > > Linux TCP implements "Appropriate Byte Count" (ABC) and this penalizes > > applications that do small sends. The problem is

Re: [-mm patch] net/sched/act_simple.c: make struct simp_hash_info static

2006-08-30 Thread David Miller
From: Adrian Bunk <[EMAIL PROTECTED]> Date: Wed, 30 Aug 2006 22:35:07 +0200 > On Sat, Aug 26, 2006 at 04:09:22PM -0700, Andrew Morton wrote: > >... > > Changes since 2.6.18-rc4-mm2: > >... > > git-net.patch > >... > > git trees > >... > > This patch makes the needlessly global struct simp_hash_

Re: high latency with TCP connections

2006-08-30 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Wed, 30 Aug 2006 10:27:27 -0700 > Linux TCP implements "Appropriate Byte Count" (ABC) and this penalizes > applications that do small sends. The problem is that the other side > may be delaying acknowledgments. If receiver doesn't acknowledge the

Re: [PATCH] fix sk->sk_filter field access

2006-08-30 Thread David Miller
From: Dmitry Mishin <[EMAIL PROTECTED]> Date: Wed, 30 Aug 2006 17:07:14 +0400 > Function sk_filter() is called from tcp_v{4,6}_rcv() functions with argue > needlock = 0, while socket is not locked at that moment. In order to avoid > this and similar issues in the future, use rcu for sk->sk_filte

Re: Loop detected - calling function from different modules

2006-08-30 Thread Stephen Hemminger
On Wed, 30 Aug 2006 22:58:17 +0200 "Frank Schneider" <[EMAIL PROTECTED]> wrote: > > hi all, > > I am writing/customizing a network(wlan pc card) device driver for Linux > kernel 2.6.12 > Think about I have two modules e.g. ath_pci and wlan module. > I can call a function from a .c file which

Re: PATCH: br_stp.c:271: ignoring BPDUs if cost goes up

2006-08-30 Thread Stephen Hemminger
Here is a comparison of the existing implementation against 802.1d standard pseudo-code. /* Spec */ Boolean supersedes_port_info(port_no, config) /* (8.6.2.2) */ Int port_no; Config_bpdu *config; { return config->root_id < port_info[port_no].designated_root /* (8.6.2.2 a) */

Loop detected - calling function from different modules

2006-08-30 Thread Frank Schneider
hi all, I am writing/customizing a network(wlan pc card) device driver for Linux kernel 2.6.12 Think about I have two modules e.g. ath_pci and wlan module. I can call a function from a .c file which is implemented in a .c file in wlan module by using EXPORT_SYMBOL macro.. and i need to d

[-mm patch] net/sched/act_simple.c: make struct simp_hash_info static

2006-08-30 Thread Adrian Bunk
On Sat, Aug 26, 2006 at 04:09:22PM -0700, Andrew Morton wrote: >... > Changes since 2.6.18-rc4-mm2: >... > git-net.patch >... > git trees >... This patch makes the needlessly global struct simp_hash_info static. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- linux-2.6.18-rc4-mm3/net/sched/

Re: [PATCH 0/3] secid reconciliation-v01: Repost patchset with up dates

2006-08-30 Thread Paul Moore
James Morris wrote: > On Fri, 25 Aug 2006, Venkat Yekkirala wrote: >>>I like these changes, but wondering why you haven't supplied >>>code for the >>>outbound case ? >> >>The code for the outbound is still in the works. I hope to have it >>out in a week or so. > > Ok, I guess we should wait unti

Re: [PATCH v5 2/2] iWARP Core Changes.

2006-08-30 Thread Roland Dreier
While merging this, I uninlined rdma_node_get_transport, since I don't think there's any reason to make it inline: add/remove: 1/0 grow/shrink: 7/16 up/down: 65/-146 (-81) function old new delta rdma_node_get_transport- 33

i not find in the kernel code the code of this command

2006-08-30 Thread [EMAIL PROTECTED]
Hi!, I'm not able to subscrive at this list. My server mail don't send the mail and consider it a spam mail... For this, please send eventual response to this mail address ([EMAIL PROTECTED]) The problem is this: I'm searching, in kernel code, the code that implement thi command: tc filter

Re: PATCH: br_stp.c:271: ignoring BPDUs if cost goes up

2006-08-30 Thread Stephen Hemminger
On Wed, 30 Aug 2006 11:04:36 -0700 Brian Braunstein <[EMAIL PROTECTED]> wrote: > PATCH > problem at: br_stp.c:271 > problem: ignoring BPDUs if cost goes up > > i was refered to email these addresses by the bridging code author. > > please see the full problem description and patch at: > http://m

Re: PATCH: br_stp.c:271: ignoring BPDUs if cost goes up

2006-08-30 Thread Stephen Hemminger
On Wed, 30 Aug 2006 11:04:36 -0700 Brian Braunstein <[EMAIL PROTECTED]> wrote: > PATCH > problem at: br_stp.c:271 > problem: ignoring BPDUs if cost goes up > > i was refered to email these addresses by the bridging code author. > > please see the full problem description and patch at: > http://m

Re: [PATCH] WE-21 for zd1211rw

2006-08-30 Thread Jean Tourrilhes
On Wed, Aug 30, 2006 at 03:46:27AM +0100, Daniel Drake wrote: > Looks like zd1211rw was forgotten from the WE-21 migration. This patch > should do it... Good catch ! Actually, I did look at it, and verified that it was using softmac for ESSID, so I thought I was ok... With the numb

PATCH: br_stp.c:271: ignoring BPDUs if cost goes up

2006-08-30 Thread Brian Braunstein
PATCH problem at: br_stp.c:271 problem: ignoring BPDUs if cost goes up i was refered to email these addresses by the bridging code author. please see the full problem description and patch at: http://mesh.calit2.net/calmesh/one/linux_kernel_modifications/bridge_ignoring_bpdus/ if you would like

Re: [PATCH 2/2]d80211: add hardware scan callback

2006-08-30 Thread Mohamed Abbas
3945 firmware and hardware still do time critical functions like Beaconing and power management. This restrict us once associated to switch channel from the driver. we need to unassociated first before switching to a new channel. Because of this restriction while associated we can only call s

Re: [PATCH 2/7] d80211: add support for SIOCSIWRATE and SIOCGIWRATE

2006-08-30 Thread Mohamed Abbas
Jouni Malinen wrote: On Mon, Aug 28, 2006 at 01:45:34PM -0700, mabbas wrote: This patch modify d80211 to add SIOCSIWRATE and SIOCGIWRATE commands. this patch almost does the same thing as in PRISM2_HOSTAPD_SET_RATE_SETS. I don't think I would like to get this applied since this seem

Re: [PATCH] Fix verify_iovec() to not allow overflow of iov_len values

2006-08-30 Thread Sridhar Samudrala
On Tue, 2006-08-29 at 21:44 -0700, David Miller wrote: > From: Sridhar Samudrala <[EMAIL PROTECTED]> > Date: Tue, 29 Aug 2006 10:55:29 -0700 > > > verify_iovec() has the following piece of code that allows overflow > > of iov_len values in an iovec. > > > > for (ct = 0; ct < m->msg_iovlen

Re: [PATCH v5 1/2] iWARP Connection Manager.

2006-08-30 Thread Tom Tucker
On Wed, 2006-08-30 at 10:35 -0700, Roland Dreier wrote: > OK, getting closer to finishing the merge... > > anyway, why is iw_cm_private.h in include/rdma where it is visible > everywhere? As far as I can tell drivers/infiniband/core/iwcm.c is > the only place it's included. So why not just put t

Re: [BUG] in skge.c on 2.6.18-rc5

2006-08-30 Thread Thibaut VARENE
On 8/30/06, Stephen Hemminger <[EMAIL PROTECTED]> wrote: On Wed, 30 Aug 2006 19:21:20 +0200 "Thibaut VARENE" <[EMAIL PROTECTED]> wrote: > Replying to myself as I've been pointed at Stephen's reply (please CC > me, i'm not subscribed): > > I'm bringing the interface up with 'dhclient eth0', and y

Re: [PATCH v5 1/2] iWARP Connection Manager.

2006-08-30 Thread Roland Dreier
OK, getting closer to finishing the merge... anyway, why is iw_cm_private.h in include/rdma where it is visible everywhere? As far as I can tell drivers/infiniband/core/iwcm.c is the only place it's included. So why not just put this stuff in drivers/infiniband/core/iwcm.h and do #inclu

Re: high latency with TCP connections

2006-08-30 Thread Stephen Hemminger
On Wed, 30 Aug 2006 14:07:34 +0400 Alexander Vodomerov <[EMAIL PROTECTED]> wrote: > Hello! > > I'm writing an application that is working over TCP. Total traffic is > very low (~ 10 kb/sec), but performance is very bad. I've tried to > investigate problem with tcpdump and strace, and it shows tha

Re: [BUG] in skge.c on 2.6.18-rc5

2006-08-30 Thread Stephen Hemminger
On Wed, 30 Aug 2006 19:21:20 +0200 "Thibaut VARENE" <[EMAIL PROTECTED]> wrote: > Replying to myself as I've been pointed at Stephen's reply (please CC > me, i'm not subscribed): > > I'm bringing the interface up with 'dhclient eth0', and yes it's using > autoneg. > Any chance of getting a back

Re: [PATCH 5/7] d80211: indicate if unassociate/radio off status

2006-08-30 Thread Michael Wu
On Wednesday 30 August 2006 06:41, Dan Williams wrote: > Um, that's how it's supposed to work, and that's how it's always worked. > If you're associated with an access point, its BSSID is returned from > SIOCGIWAP. If you are not associated, 00:00:00:00:00:00 is returned. > Please don't break that

Re: [PATCH]d80211: fix "iwconfig key [x]" behavior

2006-08-30 Thread Jiri Benc
On Mon, 28 Aug 2006 16:36:39 +0800, Hong Liu wrote: > "iwconfig key [x]" behavior is not correctly handled in the stack, also > modify the giwencode method to show the key info. Thanks for spotting and fixing these bugs! > @@ -2869,7 +2877,8 @@ static int ieee80211_ioctl_giwencode(str >

Re: [BUG] in skge.c on 2.6.18-rc5

2006-08-30 Thread Thibaut VARENE
Replying to myself as I've been pointed at Stephen's reply (please CC me, i'm not subscribed): I'm bringing the interface up with 'dhclient eth0', and yes it's using autoneg. HTH T_Bone On 8/30/06, Thibaut VARENE <[EMAIL PROTECTED]> wrote: Hi, The following commit: commit 239e44e1f05e2163ee

Re: [PATCH 2/7] d80211: add support for SIOCSIWRATE and SIOCGIWRATE

2006-08-30 Thread Jouni Malinen
On Mon, Aug 28, 2006 at 01:45:34PM -0700, mabbas wrote: > This patch modify d80211 to add SIOCSIWRATE and SIOCGIWRATE > commands. this patch almost does the same thing as in > PRISM2_HOSTAPD_SET_RATE_SETS. I don't think I would like to get this applied since this seems to be changing the design

Re: [PATCH 2/2]d80211: add hardware scan callback

2006-08-30 Thread Jiri Benc
On Fri, 25 Aug 2006 16:32:13 +0800, Hong Liu wrote: > Add hardware scan callback to support cards like ipw3945 which > implements the scan command in firmware. How ipw3945 performs scan? From the patch, it looks like it switches channels (and sends probe requests) in the firmware and delivers all

Re: [PATCH 1/2]d80211: fix wpa_supplicant reassoc problem

2006-08-30 Thread Jiri Benc
On Fri, 25 Aug 2006 16:32:08 +0800, Hong Liu wrote: > After key negotiation completed using wpa_supplicant, wpa_supplicant > can't reassoc with the AP if we reboot the AP. It always fails at the > 4-way handshake. > The problem is the key info is not cleared correctly. Thus when > wpa_supplicant se

Re: IPSec kernel oops on ppc64

2006-08-30 Thread Joy Latten
>-- >diff --git a/arch/powerpc/lib/memcpy_64.S b/arch/powerpc/lib/memcpy_64.S >index fd66acf..9e8d9e7 100644 >--- a/arch/powerpc/lib/memcpy_64.S >+++ b/arch/powerpc/lib/memcpy_64.S >@@ -11,6 +11,7 @@ #include > > .align 7 > _GLOBAL(memcpy) >+ std r3,-8(r1) > mtcrf 0x01,r5

Re: [BUG] in skge.c on 2.6.18-rc5

2006-08-30 Thread Stephen Hemminger
On Wed, 30 Aug 2006 17:30:46 +0200 "Thibaut VARENE" <[EMAIL PROTECTED]> wrote: > Hi, > > The following commit: > > commit 239e44e1f05e2163ee066c07a753f9fb445979b2 > Author: Edgar E. Iglesias <[EMAIL PROTECTED]> > Date: Mon Aug 14 23:00:24 2006 -0700 > > [PATCH] skge: remember to run netif

Re: [patch 5/5] d80211: add ioctl to stop data frame tx

2006-08-30 Thread Jouni Malinen
On Wed, Aug 30, 2006 at 09:26:21AM +0200, Johannes Berg wrote: > On Tue, 2006-08-29 at 11:39 -0700, Jouni Malinen wrote: > > > What would be the preferred way of doing the conversion here? I think I > > would prefer to get the radar detection code in as-is and then move all > > the messages to use

Re: [PATCH] d80211: use list_for_each_entry{,_safe}

2006-08-30 Thread Jouni Malinen
On Wed, Aug 30, 2006 at 10:43:39AM +0200, Johannes Berg wrote: > This patch converts uses of list_for_each and list_for_each_safe to > list_for_each_entry and list_for_each_entry_safe respectively where > applicable. It also adds locking in some places though I'm not entirely > sure that I can do i

[BUG] in skge.c on 2.6.18-rc5

2006-08-30 Thread Thibaut VARENE
Hi, The following commit: commit 239e44e1f05e2163ee066c07a753f9fb445979b2 Author: Edgar E. Iglesias <[EMAIL PROTECTED]> Date: Mon Aug 14 23:00:24 2006 -0700 [PATCH] skge: remember to run netif_poll_disable() Signed-off-by: Edgar E. Iglesias <[EMAIL PROTECTED]> Cc: Stephen Hemminger

Please pull 'upstream' branch of wireless-2.6

2006-08-30 Thread John W. Linville
The following changes since commit e4ac2663ea27d5dda88d97d117080995fcfcd6d5: John W. Linville: Merge branch 'from-linus' into upstream are found in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git upstream Larry Finger: bcm43xx: op

Re: [PATCH 5/7] d80211: indicate if unassociate/radio off status

2006-08-30 Thread Dan Williams
On Tue, 2006-08-29 at 16:01 -0700, Michael Wu wrote: > On Tuesday 29 August 2006 15:50, Michael Wu wrote: > > On Tuesday 29 August 2006 15:28, Mohamed Abbas wrote: > > > SIOCGIWAP will always report the bssid no > > > matter what the status of our link. > > > > That is not the case at the moment.

Re: [PATCH 4/7] d80211: add support for SIOCSIWNICKN SIOCGIWNICKN

2006-08-30 Thread Dan Williams
On Wed, 2006-08-30 at 00:15 +0200, Ulrich Kunitz wrote: > On 06-08-29 10:45 Jouni Malinen wrote: > > > The only reason for adding nick command would be to maintain backwards > > compatibility with some scripts. I do not use any distro configuration > > mechanisms for setting up wireless, so I do n

Re: [PATCH 0/6] Various NetLabel fixes and cleanups

2006-08-30 Thread Paul Moore
David Miller wrote: > From: [EMAIL PROTECTED] > Date: Tue, 29 Aug 2006 10:42:51 -0400 > > >>This patchset contains a series of small patches to fix a bug and some general >>ugliness from the original author (that moron ...). All of the following >>patches are against David's net-2.6.19 tree. >>

[PATCH] fix sk->sk_filter field access

2006-08-30 Thread Dmitry Mishin
Hello, all! Function sk_filter() is called from tcp_v{4,6}_rcv() functions with argue needlock = 0, while socket is not locked at that moment. In order to avoid this and similar issues in the future, use rcu for sk->sk_filter field read protection. Patch is for net-2.6.19 Signed-off-by: Dmitr

Re: [PATCH] zd1211rw: Removed unneeded packed attributes

2006-08-30 Thread Michael Buesch
On Wednesday 30 August 2006 00:51, Daniel Drake wrote: > From: Ulrich Kunitz <[EMAIL PROTECTED]> > > Inspired by an e-mail by Stephen Hemminger I decided to remove all > unneeded packed attributes from the code where the member variables are > already aligned. This avoids horrible code being gener

Re: [PATCH 2.6.18] WE-21 for bcm43xx (wireless-2.6 git)

2006-08-30 Thread Michael Buesch
On Wednesday 30 August 2006 03:12, Jean Tourrilhes wrote: > Hi, > > WE-21 for Broadcom driver and SoftMAC... > This version is for wireless-2.6 git. > > Jean > > Signed-off-by: Jean Tourrilhes <[EMAIL PROTECTED]> Signed-off-by: Michael Buesch <[EMAIL PROTECTED]> N

Re: [PATCH]ethtool.c:fix buffer overflow when devname is too long

2006-08-30 Thread Jeff Garzik
[EMAIL PROTECTED] wrote: As the length of field ifr_name of struct ifreq is IFNAMSIZ(16) in header file /usr/include/net/if.h. It will result in buffer overflow when devname is too long. Modified strcpy to strncpy for only copying IFNAMSIZ bytes into struct ifreq. Also, by adding a section into

Re: Fw: [Bugme-new] [Bug 7074] New: Kernel Panic on kernel 2.6.16.1

2006-08-30 Thread Patrick McHardy
Andrew Morton wrote: > Obvious question: does it happen with 2.6.17.x or 2.6.18-rc5? > > > Begin forwarded message: > > Date: Tue, 29 Aug 2006 19:49:11 -0700 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: [Bugme-new] [Bug 7074] New: Kernel Panic on kernel 2.6.16.1 > > > http://bu

Re: IPSec kernel oops on ppc64

2006-08-30 Thread Herbert Xu
Hi: Thanks to some excellent info from Joy, I've trakced the problem down to a broken implementation of memmove on ppc64, which in turn is due to a broken memcpy. Both memmove and memcpy need to return the destination pointer as per the C standard. The ppc64 version of memcpy returns a pointer t

[PATCH]ethtool.c:fix buffer overflow when devname is too long

2006-08-30 Thread wangzyu
As the length of field ifr_name of struct ifreq is IFNAMSIZ(16) in header file /usr/include/net/if.h. It will result in buffer overflow when devname is too long. Modified strcpy to strncpy for only copying IFNAMSIZ bytes into struct ifreq. Also, by adding a section into parse_cmdline to detect

high latency with TCP connections

2006-08-30 Thread Alexander Vodomerov
Hello! I'm writing an application that is working over TCP. Total traffic is very low (~ 10 kb/sec), but performance is very bad. I've tried to investigate problem with tcpdump and strace, and it shows that application does multiple writes, but TCP buffers them and send after some delay (about 40

[PATCH] d80211: make _irqsafe functions understandable

2006-08-30 Thread Johannes Berg
Scheduling a tasklet when all it'll do is free the skb seems pretty strange, we can just free the skb right away (it'll not be freed but cleaned up later anyway then). Also, this patch adds a few comments about what that code is doing with the skb->cb field, namely storing a pointer and not the ac

[PATCH] d80211: use list_for_each_entry{,_safe}

2006-08-30 Thread Johannes Berg
This patch converts uses of list_for_each and list_for_each_safe to list_for_each_entry and list_for_each_entry_safe respectively where applicable. It also adds locking in some places though I'm not entirely sure that I can do it that way (i.e. call ieee80211_key_enable_hwaccel etc. with spinlocks

[PATCH] d80211: use BUILD_BUG_ON

2006-08-30 Thread Johannes Berg
This patch makes d80211 use BUILD_BUG_ON instead of checking at module initialisation time. This check really is only interesting while you hack since if the module was built, then it's either an 'always true' or 'always false' comparison, hence useless to do it at runtime. Signed-off-by: Johannes

[PATCH] d80211: clean up those huge else if statements

2006-08-30 Thread Johannes Berg
This patch replaces the if (...) else if (...) else if (...) ... statements I complained about earlier with switches. Signed-off-by: Johannes Berg <[EMAIL PROTECTED]> --- wireless-dev.orig/net/d80211/ieee80211_ioctl.c 2006-08-25 22:49:45.518728753 +0200 +++ wireless-dev/net/d80211/ieee80211

Re: [patch 5/5] d80211: add ioctl to stop data frame tx

2006-08-30 Thread Johannes Berg
On Tue, 2006-08-29 at 11:39 -0700, Jouni Malinen wrote: > What would be the preferred way of doing the conversion here? I think I > would prefer to get the radar detection code in as-is and then move all > the messages to use a new mechanism as one change once that mechanism > becomes available.

[PATCH] Fix dm9000 release_resource

2006-08-30 Thread Dirk Opfer
dm9000_release_board calls release_resource with the platform resource instead of the requested resource: db->addr_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); db->addr_req = request_mem_region(db->addr_res->start, i, pdev->name); dm9000_release_board: if (db->addr_res != NULL) {