From: Kalle Valo <kvalo@kernel.org>
To: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org,
"Edward Matijevic" <motolav@gmail.com>,
"John Crispin" <john@phrozen.org>,
"Oldřich Jedlička" <oldium.pro@gmail.com>,
"Tom Psyborg" <pozega.tomislav@gmail.com>,
"Vasanthakumar Thiagarajan" <vthiagar@qti.qualcomm.com>,
"Zhijun You" <hujy652@gmail.com>
Subject: Re: [PATCH 1/4] ath10k: improve tx status reporting
Date: Wed, 18 May 2022 10:30:01 +0300 [thread overview]
Message-ID: <87tu9n2t8m.fsf@kernel.org> (raw)
In-Reply-To: <CAHNKnsS2_vVPZT-PSjNDzfQmyXEaOJNO8MHqVfntN=GSG3P_Ng@mail.gmail.com> (Sergey Ryazanov's message of "Mon, 16 May 2022 23:57:34 +0300")
Sergey Ryazanov <ryazanov.s.a@gmail.com> writes:
> On Mon, May 16, 2022 at 6:25 AM Sergey Ryazanov <ryazanov.s.a@gmail.com> wrote:
>
>> --- a/drivers/net/wireless/ath/ath10k/txrx.c
>> +++ b/drivers/net/wireless/ath/ath10k/txrx.c
>> @@ -43,6 +43,7 @@ static void ath10k_report_offchan_tx(struct ath10k *ar, struct sk_buff *skb)
>> int ath10k_txrx_tx_unref(struct ath10k_htt *htt,
>> const struct htt_tx_done *tx_done)
>> {
>> + struct ieee80211_tx_status status;
>> struct ath10k *ar = htt->ar;
>> struct device *dev = ar->dev;
>> struct ieee80211_tx_info *info;
>> @@ -128,7 +129,16 @@ int ath10k_txrx_tx_unref(struct ath10k_htt *htt,
>> info->status.flags |= IEEE80211_TX_STATUS_ACK_SIGNAL_VALID;
>> }
>>
>> - ieee80211_tx_status(htt->ar->hw, msdu);
>> + memset(&status, 0, sizeof(status));
>> + status.skb = msdu;
>> + status.info = info;
>> +
>> + rcu_read_lock();
>> + if (txq && txq->sta)
>> + status.sta = txq->sta;
>
> Just noticed that since we do not dereference the txq->sta pointer
> here, the above code can be simplified to:
>
> if (txq)
> status.sta = txq->sta;
>
> Kalle, should I send V2 or can you change this in your tree?
I changed this in the pending branch, please check my changes:
https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=1bd0c16e10229683fab1dd8adf8c4339992688b7
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
WARNING: multiple messages have this Message-ID (diff)
From: Kalle Valo <kvalo@kernel.org>
To: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org,
"Edward Matijevic" <motolav@gmail.com>,
"John Crispin" <john@phrozen.org>,
"Oldřich Jedlička" <oldium.pro@gmail.com>,
"Tom Psyborg" <pozega.tomislav@gmail.com>,
"Vasanthakumar Thiagarajan" <vthiagar@qti.qualcomm.com>,
"Zhijun You" <hujy652@gmail.com>
Subject: Re: [PATCH 1/4] ath10k: improve tx status reporting
Date: Wed, 18 May 2022 10:30:01 +0300 [thread overview]
Message-ID: <87tu9n2t8m.fsf@kernel.org> (raw)
In-Reply-To: <CAHNKnsS2_vVPZT-PSjNDzfQmyXEaOJNO8MHqVfntN=GSG3P_Ng@mail.gmail.com> (Sergey Ryazanov's message of "Mon, 16 May 2022 23:57:34 +0300")
Sergey Ryazanov <ryazanov.s.a@gmail.com> writes:
> On Mon, May 16, 2022 at 6:25 AM Sergey Ryazanov <ryazanov.s.a@gmail.com> wrote:
>
>> --- a/drivers/net/wireless/ath/ath10k/txrx.c
>> +++ b/drivers/net/wireless/ath/ath10k/txrx.c
>> @@ -43,6 +43,7 @@ static void ath10k_report_offchan_tx(struct ath10k *ar, struct sk_buff *skb)
>> int ath10k_txrx_tx_unref(struct ath10k_htt *htt,
>> const struct htt_tx_done *tx_done)
>> {
>> + struct ieee80211_tx_status status;
>> struct ath10k *ar = htt->ar;
>> struct device *dev = ar->dev;
>> struct ieee80211_tx_info *info;
>> @@ -128,7 +129,16 @@ int ath10k_txrx_tx_unref(struct ath10k_htt *htt,
>> info->status.flags |= IEEE80211_TX_STATUS_ACK_SIGNAL_VALID;
>> }
>>
>> - ieee80211_tx_status(htt->ar->hw, msdu);
>> + memset(&status, 0, sizeof(status));
>> + status.skb = msdu;
>> + status.info = info;
>> +
>> + rcu_read_lock();
>> + if (txq && txq->sta)
>> + status.sta = txq->sta;
>
> Just noticed that since we do not dereference the txq->sta pointer
> here, the above code can be simplified to:
>
> if (txq)
> status.sta = txq->sta;
>
> Kalle, should I send V2 or can you change this in your tree?
I changed this in the pending branch, please check my changes:
https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=1bd0c16e10229683fab1dd8adf8c4339992688b7
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
next prev parent reply other threads:[~2022-05-18 7:30 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-16 3:25 [PATCH 0/4] ath10k: add encapsulation offloading support Sergey Ryazanov
2022-05-16 3:25 ` Sergey Ryazanov
2022-05-16 3:25 ` [PATCH 1/4] ath10k: improve tx status reporting Sergey Ryazanov
2022-05-16 3:25 ` Sergey Ryazanov
2022-05-16 20:57 ` Sergey Ryazanov
2022-05-16 20:57 ` Sergey Ryazanov
2022-05-18 7:30 ` Kalle Valo [this message]
2022-05-18 7:30 ` Kalle Valo
2022-05-18 10:57 ` Sergey Ryazanov
2022-05-18 10:57 ` Sergey Ryazanov
2022-05-22 12:28 ` Kalle Valo
2022-05-22 12:28 ` Kalle Valo
2022-05-16 3:25 ` [PATCH 2/4] ath10k: htt_tx: do not interpret Eth frames as WiFi Sergey Ryazanov
2022-05-16 3:25 ` Sergey Ryazanov
2022-05-16 3:25 ` [PATCH 3/4] ath10k: turn rawmode into frame_mode Sergey Ryazanov
2022-05-16 3:25 ` Sergey Ryazanov
2022-05-16 3:25 ` [PATCH 4/4] ath10k: add encapsulation offloading support Sergey Ryazanov
2022-05-16 3:25 ` Sergey Ryazanov
2022-05-17 2:37 ` [PATCH 0/4] " Edward Matijevic
2022-05-17 2:37 ` Edward Matijevic
2022-05-17 8:37 ` Sergey Ryazanov
2022-05-17 8:37 ` Sergey Ryazanov
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=87tu9n2t8m.fsf@kernel.org \
--to=kvalo@kernel.org \
--cc=ath10k@lists.infradead.org \
--cc=hujy652@gmail.com \
--cc=john@phrozen.org \
--cc=linux-wireless@vger.kernel.org \
--cc=motolav@gmail.com \
--cc=oldium.pro@gmail.com \
--cc=pozega.tomislav@gmail.com \
--cc=ryazanov.s.a@gmail.com \
--cc=vthiagar@qti.qualcomm.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 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.