From: Marco Porsch <marco@cozybit.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: mcgrof@qca.qualcomm.com, jouni@qca.qualcomm.com,
vthiagar@qca.qualcomm.com, senthilb@qca.qualcomm.com,
linux-wireless@vger.kernel.org, devel@lists.open80211s.org,
ath9k-devel@lists.ath9k.org
Subject: Re: [PATCH 1/3] mac80211: move mesh sync beacon handler into neighbour_update
Date: Mon, 18 Feb 2013 16:07:23 +0100 [thread overview]
Message-ID: <512243AB.6000801@cozybit.com> (raw)
In-Reply-To: <1360936708.15040.18.camel@jlt4.sipsolutions.net>
Hi,
On 02/15/2013 02:58 PM, Johannes Berg wrote:
> On Fri, 2013-02-15 at 14:48 +0100, Marco Porsch wrote:
>
>>> I'm talking about this API:
>>>
>>> mesh_neighbour_update:
>>> ...
>>> tsf = drv_get_tsf()
>>> ...
>>> sync_ops->rx_bcn(..., tsf)
>>>
>>>
>>> mesh_sync_offset_rx_bcn(..., t_r):
>>> ...
>>> if (have_better_timestamp)
>>> t_r = get_better_timestamp()
>>>
>>>
>>> You can hardly claim that's an intuitive API.
>>
>> Hm, alright. Just saying that ieee80211_mps_sta_tbtt_update still uses
>> the unchanged TSF value. But hey :)
>
> Well, that function doesn't exist in this patch...
>
>> What would be more favourable then?
>
> I guess you can tell I'm not in a good mood today. I think any use of
> get_tsf() for operation is a complete waste of time, there's no way you
> can get the timings correct. You could be preempted, and suddenly sleep
> for a few tens or hundreds milliseconds, so none of this makes any
> sense... To properly do it you have to do calculations in relative times
> and let the device apply them.
I don't get your last sentence here. Maybe you can elaborate?
Concerning timestamp vs. TSF usage; wow - I tested it when using the
timestamp value for TBTT scheduling. Works fine. Works even better than
TSF as it slightly reduces the measured wakeup overhead.
Hm, I was sure the TSF as in *now* would be more appropriate than the
TSF at receipt time... But either way, if it works better and is less
ugly, it is a win-win =)
I'll send an updated patch with the more intuitive API.
WARNING: multiple messages have this Message-ID (diff)
From: Marco Porsch <marco@cozybit.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH 1/3] mac80211: move mesh sync beacon handler into neighbour_update
Date: Mon, 18 Feb 2013 16:07:23 +0100 [thread overview]
Message-ID: <512243AB.6000801@cozybit.com> (raw)
In-Reply-To: <1360936708.15040.18.camel@jlt4.sipsolutions.net>
Hi,
On 02/15/2013 02:58 PM, Johannes Berg wrote:
> On Fri, 2013-02-15 at 14:48 +0100, Marco Porsch wrote:
>
>>> I'm talking about this API:
>>>
>>> mesh_neighbour_update:
>>> ...
>>> tsf = drv_get_tsf()
>>> ...
>>> sync_ops->rx_bcn(..., tsf)
>>>
>>>
>>> mesh_sync_offset_rx_bcn(..., t_r):
>>> ...
>>> if (have_better_timestamp)
>>> t_r = get_better_timestamp()
>>>
>>>
>>> You can hardly claim that's an intuitive API.
>>
>> Hm, alright. Just saying that ieee80211_mps_sta_tbtt_update still uses
>> the unchanged TSF value. But hey :)
>
> Well, that function doesn't exist in this patch...
>
>> What would be more favourable then?
>
> I guess you can tell I'm not in a good mood today. I think any use of
> get_tsf() for operation is a complete waste of time, there's no way you
> can get the timings correct. You could be preempted, and suddenly sleep
> for a few tens or hundreds milliseconds, so none of this makes any
> sense... To properly do it you have to do calculations in relative times
> and let the device apply them.
I don't get your last sentence here. Maybe you can elaborate?
Concerning timestamp vs. TSF usage; wow - I tested it when using the
timestamp value for TBTT scheduling. Works fine. Works even better than
TSF as it slightly reduces the measured wakeup overhead.
Hm, I was sure the TSF as in *now* would be more appropriate than the
TSF at receipt time... But either way, if it works better and is less
ugly, it is a win-win =)
I'll send an updated patch with the more intuitive API.
next prev parent reply other threads:[~2013-02-18 15:07 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-15 11:40 [PATCH 1/3] mac80211: move mesh sync beacon handler into neighbour_update Marco Porsch
2013-02-15 11:40 ` [ath9k-devel] " Marco Porsch
2013-02-15 11:40 ` [PATCH 2/3] mac80211: mesh power save doze scheduling Marco Porsch
2013-02-15 11:40 ` [ath9k-devel] " Marco Porsch
2013-02-15 11:40 ` [PATCH 3/3] ath9k: mesh powersave support Marco Porsch
2013-02-15 11:40 ` [ath9k-devel] " Marco Porsch
2013-02-15 12:14 ` [PATCH 1/3] mac80211: move mesh sync beacon handler into neighbour_update Johannes Berg
2013-02-15 12:14 ` [ath9k-devel] " Johannes Berg
2013-02-15 12:40 ` Bob Copeland
2013-02-15 12:40 ` [ath9k-devel] " Bob Copeland
2013-02-15 12:42 ` Bob Copeland
2013-02-15 12:42 ` [ath9k-devel] " Bob Copeland
2013-02-15 13:30 ` Marco Porsch
2013-02-15 13:30 ` [ath9k-devel] " Marco Porsch
2013-02-15 12:40 ` marco
2013-02-15 12:40 ` [ath9k-devel] " marco at cozybit.com
2013-02-15 12:46 ` Johannes Berg
2013-02-15 12:46 ` [ath9k-devel] " Johannes Berg
2013-02-15 13:31 ` Marco Porsch
2013-02-15 13:31 ` [ath9k-devel] " Marco Porsch
2013-02-15 13:37 ` Johannes Berg
2013-02-15 13:37 ` [ath9k-devel] " Johannes Berg
2013-02-15 13:48 ` Marco Porsch
2013-02-15 13:48 ` [ath9k-devel] " Marco Porsch
2013-02-15 13:58 ` Johannes Berg
2013-02-15 13:58 ` [ath9k-devel] " Johannes Berg
2013-02-18 15:07 ` Marco Porsch [this message]
2013-02-18 15:07 ` Marco Porsch
2013-02-18 15:20 ` Johannes Berg
2013-02-18 15:20 ` [ath9k-devel] " 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=512243AB.6000801@cozybit.com \
--to=marco@cozybit.com \
--cc=ath9k-devel@lists.ath9k.org \
--cc=devel@lists.open80211s.org \
--cc=johannes@sipsolutions.net \
--cc=jouni@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
--cc=mcgrof@qca.qualcomm.com \
--cc=senthilb@qca.qualcomm.com \
--cc=vthiagar@qca.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.