From: Kalle Valo <kvalo@kernel.org>
To: Seevalamuthu Mariappan <quic_seevalam@quicinc.com>
Cc: <ath11k@lists.infradead.org>, <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] ath11k: Add support for dynamic vlan
Date: Fri, 03 Jun 2022 11:34:17 +0300 [thread overview]
Message-ID: <874k12no1i.fsf@kernel.org> (raw)
In-Reply-To: <1641786090-10232-1-git-send-email-quic_seevalam@quicinc.com> (Seevalamuthu Mariappan's message of "Mon, 10 Jan 2022 09:11:30 +0530")
Seevalamuthu Mariappan <quic_seevalam@quicinc.com> writes:
> Advertise AP-VLAN interface type for vlan support in driver.
> Metadata information in dp_tx is added to notify firmware
> that multicast/broadcast packets are encrypted in software.
>
> Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-01073-QCAHKSWPL_SILICONZ-1
>
> Signed-off-by: Seevalamuthu Mariappan <quic_seevalam@quicinc.com>
> ---
> drivers/net/wireless/ath/ath11k/core.c | 6 +++
> drivers/net/wireless/ath/ath11k/dp_tx.c | 74 ++++++++++++++++++++++++++++++++-
> drivers/net/wireless/ath/ath11k/dp_tx.h | 14 +++++++
> drivers/net/wireless/ath/ath11k/hw.h | 1 +
> drivers/net/wireless/ath/ath11k/mac.c | 5 +++
> 5 files changed, 98 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c
> index 293563b..0b2407e 100644
> --- a/drivers/net/wireless/ath/ath11k/core.c
> +++ b/drivers/net/wireless/ath/ath11k/core.c
> @@ -86,6 +86,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
> .num_vdevs = 16 + 1,
> .num_peers = 512,
> .supports_suspend = false,
> + .supports_ap_vlan = true,
> .hal_desc_sz = sizeof(struct hal_rx_desc_ipq8074),
> .supports_regdb = false,
> .fix_l1ss = true,
> @@ -150,6 +151,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
> .num_vdevs = 16 + 1,
> .num_peers = 512,
> .supports_suspend = false,
> + .supports_ap_vlan = true,
> .hal_desc_sz = sizeof(struct hal_rx_desc_ipq8074),
> .supports_regdb = false,
> .fix_l1ss = true,
> @@ -213,6 +215,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
> .num_vdevs = 16 + 1,
> .num_peers = 512,
> .supports_suspend = true,
> + .supports_ap_vlan = false,
> .hal_desc_sz = sizeof(struct hal_rx_desc_ipq8074),
> .supports_regdb = true,
> .fix_l1ss = true,
> @@ -276,6 +279,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
> .num_vdevs = 8,
> .num_peers = 128,
> .supports_suspend = false,
> + .supports_ap_vlan = true,
> .hal_desc_sz = sizeof(struct hal_rx_desc_qcn9074),
> .supports_regdb = false,
> .fix_l1ss = true,
> @@ -339,6 +343,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
> .num_vdevs = 16 + 1,
> .num_peers = 512,
> .supports_suspend = true,
> + .supports_ap_vlan = false,
> .hal_desc_sz = sizeof(struct hal_rx_desc_wcn6855),
> .supports_regdb = true,
> .fix_l1ss = false,
> @@ -401,6 +406,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = {
> .num_vdevs = 16 + 1,
> .num_peers = 512,
> .supports_suspend = true,
> + .supports_ap_vlan = false,
> .hal_desc_sz = sizeof(struct hal_rx_desc_wcn6855),
> .supports_regdb = true,
> .fix_l1ss = false,
As this is an old patch, please make sure all entries in hw_params have
supports_ap_vlan.
> +static int ath11k_dp_metadata_align_skb(struct sk_buff *skb, u8 align_len)
> +{
> + if (unlikely(skb_cow_head(skb, align_len)))
> + return -ENOMEM;
The preferred style in ath11k is:
ret = skb_cow_head(skb, align_len);
if (unlikely(ret))
return ret;
But is the unlikely() really necessary here?
I doubt this applies anymore so please rebase and submit v2.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
prev parent reply other threads:[~2022-06-03 8:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-10 3:41 [PATCH] ath11k: Add support for dynamic vlan Seevalamuthu Mariappan
2022-01-17 12:33 ` Kalle Valo
2022-02-08 5:30 ` Seevalamuthu M (QUIC)
2022-05-06 11:55 ` Seevalamuthu M (QUIC)
2022-06-03 8:30 ` Kalle Valo
2022-06-03 8:34 ` Kalle Valo [this message]
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=874k12no1i.fsf@kernel.org \
--to=kvalo@kernel.org \
--cc=ath11k@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=quic_seevalam@quicinc.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).