Return-path: Received: from mail-oi0-f67.google.com ([209.85.218.67]:34766 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933233AbcI0MIH (ORCPT ); Tue, 27 Sep 2016 08:08:07 -0400 MIME-Version: 1.0 In-Reply-To: <41e5f45f-1956-8c9d-49d4-cd73e2c5c7c0@broadcom.com> References: <20160927091428.19223-1-zajec5@gmail.com> <86fd0b60-0f73-484b-1788-3ec740672232@broadcom.com> <87inthy441.fsf@kamboji.qca.qualcomm.com> <41e5f45f-1956-8c9d-49d4-cd73e2c5c7c0@broadcom.com> From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Date: Tue, 27 Sep 2016 14:07:46 +0200 Message-ID: (sfid-20160927_140851_928468_1A481D0D) Subject: Re: [PATCH 4.9] brcmfmac: use correct skb freeing helper when deleting flowring To: Arend Van Spriel Cc: Kalle Valo , Franky Lin , Hante Meuleman , Pieter-Paul Giesberts , Franky Lin , "linux-wireless@vger.kernel.org" , "open list:BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER" , Network Development , Linux Kernel Mailing List , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On 27 September 2016 at 14:04, Arend Van Spriel wrote: > On 27-9-2016 13:58, Rafa=C5=82 Mi=C5=82ecki wrote: >> On 27 September 2016 at 13:44, Rafa=C5=82 Mi=C5=82ecki wrote: >>> On 27 September 2016 at 13:27, Kalle Valo wrote: >>>> Arend Van Spriel writes: >>>> >>>>> On 27-9-2016 11:14, Rafa=C5=82 Mi=C5=82ecki wrote: >>>>>> From: Rafa=C5=82 Mi=C5=82ecki >>>>>> >>>>>> Flowrings contain skbs waiting for transmission that were passed to = us >>>>>> by netif. It means we checked every one of them looking for 802.1x >>>>>> Ethernet type. When deleting flowring we have to use freeing functio= n >>>>>> that will check for 802.1x type as well. >>>>>> >>>>>> Freeing skbs without a proper check was leading to counter not being >>>>>> properly decreased. This was triggering a WARNING every time >>>>>> brcmf_netdev_wait_pend8021x was called. >>>>> >>>>> Acked-by: Arend van Spriel >>>>>> Signed-off-by: Rafa=C5=82 Mi=C5=82ecki >>>>>> --- >>>>>> Kalle: this isn't important enough for 4.8 as it's too late for that= . >>>>>> >>>>>> I'd like to get it for 4.9 however, as this fixes bug that could lea= d >>>>>> to WARNING on every add_key/del_key call. We was struggling with the= se >>>>>> WARNINGs for some time and this fixes one of two problems causing th= em. >>>> >>>> Ok, I'll queue this for 4.9. >>>> >>>>> Please mark it for stable as well. >>>> >>>> I can add that. Any ideas how old releases stable releases should this >>>> go to? >>> >>> I was analyzing this. >>> 1) This patch uses brcmf_get_ifp which is available in 4.4+ only. >>> 2) It applies cleanly to 4.5+ only due to 32f90caa7debd ("brcmfmac: >>> Increase nr of supported flowrings.") >>> 3) 4.4 would also require applying to the patch without broadcom/ subdi= r >>> >>> That said I suggest 4.5+. Any objections? > > No objections. Just a tip. I tend to look at kernel.org main page to see > the stable and long-term kernel listed. So 4.7+ and 4.5+ have same > meaning as 4.5 and 4.6 are not stable/long-term kernels. Some projects may work on their own stable kernels, e.g. Ubuntu, see: https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable That's why I don't always look strictly at upstream stable releases only. --=20 Rafa=C5=82