Return-path: Received: from mail-ob0-f174.google.com ([209.85.214.174]:50326 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752525Ab2HIWOo (ORCPT ); Thu, 9 Aug 2012 18:14:44 -0400 Received: by obbuo13 with SMTP id uo13so1255512obb.19 for ; Thu, 09 Aug 2012 15:14:44 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20120809173435.GQ3745@lenteja.do-not-panic.com> <20120809170757.748b68bf@mj> <50242B80.4060509@openwrt.org> From: "Luis R. Rodriguez" Date: Thu, 9 Aug 2012 15:14:23 -0700 Message-ID: (sfid-20120810_001449_908874_77FAFFCC) Subject: Re: [PATCH v2] ath9k: decrypt_error flag issue To: Lorenzo Bianconi Cc: linux-wireless@vger.kernel.org, Felix Fietkau , Pavel Roskin Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, Aug 9, 2012 at 3:06 PM, Lorenzo Bianconi wrote: >> On 2012-08-09 11:21 PM, Luis R. Rodriguez wrote: >>> On Thu, Aug 9, 2012 at 2:07 PM, Pavel Roskin wrote: >>>> On Thu, 9 Aug 2012 11:10:38 -0700 >>>> "Luis R. Rodriguez" wrote: >>>> >>>>> And this would lead to .. what? How did you realize this? Can you >>>>> please resend and add all this information to the commit log message? >>>> >>>> Also please use a better subject. For example: >>>> >>>> ath9k: fix decrypt_error initialization in ath_rx_tasklet() >>>> >>>> "issue" is too vague. >>> >>> Also -- what I was getting at is to evaluate whether or not this is an >>> important fix or critical. To determine if its critical it helps to >>> understand exactly what negative behavior was observed. If its >>> critical it can go to stable but I have a feeling this is not >>> critical. If its not critical and only important although it won't go >>> to stable I'll still cherry pick it for the stable compat-wireless >>> releases. >> I think it's critical enough for stable. I think when using CCMP >> encryption, high CPU load can get the connection stuck (because of CCMP >> PN corruption when the issue occurs). >> >> - Felix >> > > I was using a two hop network encrypted with AES CCMP. > > STA <---f0---> Node A <---f0---> Node B f0=2412GHz > > Node A and node B were running latest OpenWRT trunk, AR9280 chipset. > I was injecting 30Mbps of UDP iperf traffic from STA to Node B. > I was facing a connection stuck issue on Node B side because it > reports a lot of decrypt errors > and since decrypt_error flag sets to true, it tries to decrypt an > already decrypted frame with ieee80211_aes_ccm_decrypt. Setting > decrypt_error to false at beginning of ath_rx_tasklet cycle > the connection is definitely more stable avoiding waste of CPU time. Can you resubmit with all this information and also what Felix mentioned and also also add: Cc: stable@vger.kernel.org as part of your commit log message (note: commit log, not e-mail). Luis