From: Arend van Spriel <arend.vanspriel@broadcom.com>
To: Felix Fietkau <nbd@nbd.name>, linux-wireless@vger.kernel.org
Cc: johannes@sipsolutions.net
Subject: Re: [PATCH] mac80211: round IEEE80211_TX_STATUS_HEADROOM up to multiple of 4
Date: Fri, 9 Feb 2018 20:10:47 +0100 [thread overview]
Message-ID: <5A7DF237.9020803@broadcom.com> (raw)
In-Reply-To: <20180209185100.22511-1-nbd@nbd.name>
On 2/9/2018 7:51 PM, Felix Fietkau wrote:
> This ensures that mac80211 allocated management frames are properly
> aligned, which makes copying them more efficient.
> For instance, mt76 uses iowrite32_copy to copy beacon frames to beacon
> template memory on the chip.
> Misaligned 32-bit accesses cause CPU exceptions on MIPS and should be
> avoided.
>
> Signed-off-by: Felix Fietkau <nbd@nbd.name>
> ---
> include/net/mac80211.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
> index 906e90223066..d999b8c8a44b 100644
> --- a/include/net/mac80211.h
> +++ b/include/net/mac80211.h
> @@ -4149,7 +4149,7 @@ void ieee80211_sta_uapsd_trigger(struct ieee80211_sta *sta, u8 tid);
> * The TX headroom reserved by mac80211 for its own tx_status functions.
> * This is enough for the radiotap header.
Hi Felix,
Maybe useful to mention the alignment requirement in this comment block.
> */
> -#define IEEE80211_TX_STATUS_HEADROOM 14
> +#define IEEE80211_TX_STATUS_HEADROOM 16
Regards,
Arend
next prev parent reply other threads:[~2018-02-09 19:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-09 18:51 [PATCH] mac80211: round IEEE80211_TX_STATUS_HEADROOM up to multiple of 4 Felix Fietkau
2018-02-09 19:10 ` Arend van Spriel [this message]
2018-02-09 19:41 ` 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=5A7DF237.9020803@broadcom.com \
--to=arend.vanspriel@broadcom.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=nbd@nbd.name \
/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.