linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@qca.qualcomm.com>
To: Erik Stromdahl <erik.stromdahl@gmail.com>
Cc: Peter Oh <peter.oh@bowerswilkins.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"ath10k@lists.infradead.org" <ath10k@lists.infradead.org>
Subject: Re: [RFC v2 05/10] ath10k: htt: High latency TX support
Date: Mon, 19 Jun 2017 15:37:37 +0000	[thread overview]
Message-ID: <87efugxa2o.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <3b0e54b7-fa0f-3609-e793-f443e05d7595@gmail.com> (Erik Stromdahl's message of "Sat, 17 Jun 2017 19:59:59 +0200")

Erik Stromdahl <erik.stromdahl@gmail.com> writes:

> On 2017-06-13 19:38, Peter Oh wrote:
>> On 06/12/2017 08:03 AM, Erik Stromdahl wrote:
>>> Add HTT TX function for HL interfaces.
>>> Intended for SDIO and USB.
>>>
>>> Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
>>> ---
>>>
>>> diff --git a/drivers/net/wireless/ath/ath10k/mac.c
>>> b/drivers/net/wireless/ath/ath10k/mac.c
>>> index 48418f9..c5fd803 100644
>>> --- a/drivers/net/wireless/ath/ath10k/mac.c
>>> +++ b/drivers/net/wireless/ath/ath10k/mac.c
>>> @@ -3572,7 +3572,10 @@ static int ath10k_mac_tx_submit(struct ath10k *a=
r,
>>>       switch (txpath) {
>>>       case ATH10K_MAC_TX_HTT:
>>> -        ret =3D ath10k_htt_tx(htt, txmode, skb);
>>> +        if (ar->is_high_latency)
>> Can we use function pointers at initial time to avoid condition check at=
 hot path?
>> I'm afraid adding more lines on hot path.
>
> I haven't made any comparison of assembly code between if-paths or
> function pointers, but since most architectures have conditional
> instructions I don't think the penalty is that big (if there is any
> penalty at all). There are plenty of other condition checks in the RX
> path (mac80211 is full of them), so I don't really see this as an
> issue.

Unless we can measure it I wouldn't be that worried either. Without
numbers trying to optimise is hard to get right.

> That being said, any improvement is always welcome (even micro
> optimizations if they are beneficial). I will think about this and see
> if adding function pointers can be done in a nice way.

But are function pointers really that much faster? You have to do a
function call anyway. And maybe use of likely() would be better, we want
to optimise for the low latency case anyway, but I still doubt we could
even measure that.

--=20
Kalle Valo=

  reply	other threads:[~2017-06-19 15:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-12 15:03 [RFC v2 00/10] ath10k high latency Erik Stromdahl
2017-06-12 15:03 ` [RFC v2 01/10] ath10k: high_latency detection Erik Stromdahl
2017-06-12 15:03 ` [RFC v2 02/10] ath10k: htt: RX ring config HL support Erik Stromdahl
2017-06-12 15:03 ` [RFC v2 03/10] ath10k: per target configurablity of various items Erik Stromdahl
2017-06-12 15:03 ` [RFC v2 04/10] ath10k: add start_once support Erik Stromdahl
2017-06-12 15:03 ` [RFC v2 05/10] ath10k: htt: High latency TX support Erik Stromdahl
2017-06-13 17:38   ` Peter Oh
2017-06-17 17:59     ` Erik Stromdahl
2017-06-19 15:37       ` Kalle Valo [this message]
2017-06-12 15:03 ` [RFC v2 06/10] ath10k: htt: High latency RX support Erik Stromdahl
2017-06-13 17:39   ` Peter Oh
2017-06-12 15:03 ` [RFC v2 07/10] ath10k: dma fixes for high latency devices Erik Stromdahl
2017-06-12 15:03 ` [RFC v2 08/10] ath10k: add QCA9377 usb hw_param item Erik Stromdahl
2017-06-12 15:03 ` [RFC v2 09/10] ath10k: add QCA9377 sdio " Erik Stromdahl
2017-06-12 15:03 ` [RFC v2 10/10] ath10k: wmi: disable softirq's while calling ieee80211_rx Erik Stromdahl

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=87efugxa2o.fsf@kamboji.qca.qualcomm.com \
    --to=kvalo@qca.qualcomm.com \
    --cc=ath10k@lists.infradead.org \
    --cc=erik.stromdahl@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=peter.oh@bowerswilkins.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).