From: "Toke Høiland-Jørgensen" <toke@toke.dk>
To: Arend van Spriel <arend.vanspriel@broadcom.com>,
Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [RESEND PATCH] cfg80211: dynamically allocate per-tid stats for station info
Date: Thu, 10 May 2018 15:02:14 +0200 [thread overview]
Message-ID: <87a7t7y889.fsf@toke.dk> (raw)
In-Reply-To: <5AF431F4.9060408@broadcom.com>
Arend van Spriel <arend.vanspriel@broadcom.com> writes:
> From: Arend van Spriel <aspriel@gmail.com>
>
> With the addition of TXQ stats in the per-tid statistics the struct
> station_info grew significantly. This resulted in stack limit warnings
> like below:
>
> CC [M] drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.o
> drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:
> In function =E2=80=98brcmf_notify_connect_status_ap=E2=80=99:
> drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:5530:1:
> error: the frame size of 1592 bytes is larger than 1024 bytes
>
> This patch adds an allocation function that those who want to provide
> per-tid stats should use to allocate the tid array, ie.
> struct station_info::pertid.
>
> Cc: Toke H=C3=B8iland-J=C3=B8rgensen <toke@toke.dk>
> Fixes: 52539ca89f36 ("cfg80211: Expose TXQ stats and parameters to
> userspace")
> Signed-off-by: Arend van Spriel <aspriel@gmail.com>
> ---
> + linux-wireless list
>
> Johannes, Toke,
>
> Here an alternative approach. Currently the only cfg80211-based driver
> providing per-tid stats is mac80211. This patch only changes mac80211
> and the other driver can keep using stack allocation. Even mac80211 could
> if wanted, but I left that part as is.
Hmm, yeah, that would work too. Though I worry that mixing dynamically
and statically allocated fields is going to result in errors further
down the road? I guess it also depends on whether struct station_info is
likely to grow more for other reasons, in which case on-stack allocation
needs to be changed anyway.
I'm fine with either approach; I'm happy to let it be up to our friendly
maintainers to decide which approach they prefer :)
-Toke
next prev parent reply other threads:[~2018-05-10 13:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5AF430B2.2060903@broadcom.com>
2018-05-10 11:50 ` [RESEND PATCH] cfg80211: dynamically allocate per-tid stats for station info Arend van Spriel
2018-05-10 13:02 ` Toke Høiland-Jørgensen [this message]
2018-05-18 9:25 ` Johannes Berg
2018-05-18 9:37 ` Arend van Spriel
2018-05-18 9:38 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a7t7y889.fsf@toke.dk \
--to=toke@toke.dk \
--cc=arend.vanspriel@broadcom.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.