Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp727500pxb; Fri, 14 Jan 2022 15:08:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7d+D/LZN879/L97B/N6ymiUQcCk3N9k3w29+kowkSJ00s+AHFWwnni4ogsqzLRveKvvaq X-Received: by 2002:a17:90a:ac0c:: with SMTP id o12mr13043912pjq.49.1642201687144; Fri, 14 Jan 2022 15:08:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642201687; cv=none; d=google.com; s=arc-20160816; b=Co2NhhjW7qHB5iXRhv7wSDZGgcjHr779C9gv2DKsJ4j2yzg+25HhdiXy4zdvLDZH8V BwgesDFSir5wrIpczd/a7WHBp9UcCez4G3x+i0ZMywRZzzTM/muK2d+YNDz8cRRFo5FS XIjpL6gRiQyaHH2+fem07ZHClFi34V0zf83TjrwMsh+b4o50/+SpJ6yOBtNRU2VuLocO pyoZ3G7YI7jzPra1JWQLRk80Ti3RHkBXwX2zWzsDCGr2BBJEungSSGRCDgLwNBpX966H 49+ELMgbcIyCWjkXaF02c82I0cDDdv9VjLytdRhPx15SjciZcN4kEWJ68MDbLMeJ8wkF UUaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=jnZxBWMMJWD7C24u3mzTa5R6XamoCCEzXJN78OLIieo=; b=0tq96z28PMvow8xl47dc2zovNkWbMGGzI2yostqkv7LMulNxWf3fADxYcpziZmPsml 8kDwDvhTkOT/87C/IpxKsZxg59HJzt7Vh38HroahB5U1wocy2FbYmpjdIRjmBc+qJBh3 LdLbsgoz4lAFJg8GVcM+OjhB5XAhUeFyiDIRkiK7rIZk1BraDKCVEz/2a+ZDGp9bjcAg bf3NNUEOpQi/tQPsnjJISdHtHM3ZUHsBOcc56ssRZcPz0qr6j+RmFtF06WvNYyeB6qN+ DurdXRY3kifrbspmWfdZiU3vBYNvOEiukK/mu7fsoLHNuyoqmtfyOiKeI+fXdd7vnHFq XKQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=iy2zzgo9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si7068921pgb.104.2022.01.14.15.07.58; Fri, 14 Jan 2022 15:08:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=iy2zzgo9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244390AbiANUuM (ORCPT + 70 others); Fri, 14 Jan 2022 15:50:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240439AbiANUuM (ORCPT ); Fri, 14 Jan 2022 15:50:12 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74589C061574 for ; Fri, 14 Jan 2022 12:50:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=jnZxBWMMJWD7C24u3mzTa5R6XamoCCEzXJN78OLIieo=; t=1642193411; x=1643403011; b=iy2zzgo9CE4auahy8qKMEWzvwLiAK7lfAMBz/Jf9bjbMU37 kSP98tMVFguzOgZQ86unki6dExOZ0IrHpsgy2aadXXXa1nTSwCb0zGrqTzgx1IKuiIBuzb9TCIVFy alDq9h8nyd6jP2XO/xzQYgNEvWNYwcUXcH5jrIfqIUx052fjJ/rHYjADjdD8HjOE7KbOOhRlZYOoB NCtMAwP0yt54LpvNsI8vPa4a6DPZ0+v//f9zyRKIo39BxT1FSFRL3O0R/P2NGJS2CByMqNU6xMQgw eOO9DPX8USFBo9AnQlsItf94CUEhG9nwNBUH6DY6keelbF/DKWnUCz0rqHc66P6A==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1n8TWT-005hzJ-Rj; Fri, 14 Jan 2022 21:50:09 +0100 Message-ID: Subject: Re: [v13 2/3] mac80211: MBSSID and EMA beacon handling in AP mode From: Johannes Berg To: Aloka Dixit Cc: linux-wireless@vger.kernel.org Date: Fri, 14 Jan 2022 21:50:09 +0100 In-Reply-To: <661712f782228b735ab65364932bb18e@codeaurora.org> References: <20211006040938.9531-1-alokad@codeaurora.org> <20211006040938.9531-3-alokad@codeaurora.org> <16a03353cee422340c8ac36240b1e088fd45802e.camel@sipsolutions.net> <661712f782228b735ab65364932bb18e@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.2 (3.42.2-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2022-01-14 at 12:34 -0800, Aloka Dixit wrote: > > With that, what would be a better way: > (1) Making it work with pseudo code, still using GFP_KERNEL or > (2) Changing to GFP_ATOMIC but otherwise keep the code fairly similar to > v13 (preferably allocating an array instead of separate pointers as you > suggested)? > It's a good question. I'm not really into the code right now, but I'd say GFP_ATOMIC should be OK. I'm not even sure the functions you're modifying are always guaranteed to be called in a context where you can sleep? E.g. I believe the driver can call ieee80211_beacon_get_tim() in atomic context itself, e.g. even from timer/interrupt to get the next beacon? johannes