Skip to contentSkip to conversation

Ack and Block Ack processing

ath9k-devel Olivier Marce 4 participants 7 messages Feb 3, 2014 – Feb 10, 2014

lore
Share & tools
lore
#0 lore raw

Hi everybody,
thanks to all of you who share your knowledge and expertise on ath9k.

I wonder if Ack and Block Ack are processed directly by the HW on receipt and not the firmware.

There are several messages that confirm that Ack and Block Ack are *sent* by HW (http://www.spinics.net/lists/linux-wireless/msg106950.html)
But are they processed (on receipt) also by HW ? I analysed firmware code and I did not find any Ack/BA processing.

Is my understanding correct ?

Best regards

Signature · 2 lines
Olivier Marc?
Alcatel-Lucent Bell Labs France
#1 lore raw

Hi,

So on the Atheros NICs, the block-acks are generated by the receiver in hardware and processed by the transmitter in hardware; you then get a bitmap in the TX completion descriptor telling you which frames did succeed/fail.

The TX completion path does check the two 32 bit blockack (ba) fields in the TX descriptor for completion. It doesn't hand-parse a BA frame.

-a

Quoted 23 lines · Olivier Marce

Hi everybody,
thanks to all of you who share your knowledge and expertise on ath9k.

I wonder if Ack and Block Ack are processed directly by the HW on receipt and not the firmware.

There are several messages that confirm that Ack and Block Ack are *sent* by HW (http://www.spinics.net/lists/linux-wireless/msg106950.html)
But are they processed (on receipt) also by HW ? I analysed firmware code and I did not find any Ack/BA processing.

Is my understanding correct ?

Best regards

--
Olivier Marc?
Alcatel-Lucent Bell Labs France
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#2 lore raw

Thanks for the quick and precise answer.

Then, I wonder is there is a way to be notified of sending/receiving of frames by the HW. For example, can we be notified of ACK (or BA) received and processed by the HW, or by frame retransmited by the HW ?

Thanks

Quoted 41 lines · Adrian Chadd

Hi,

So on the Atheros NICs, the block-acks are generated by the receiver in hardware and processed by the transmitter in hardware; you then get a bitmap in the TX completion descriptor telling you which frames did succeed/fail.

The TX completion path does check the two 32 bit blockack (ba) fields in the TX descriptor for completion. It doesn't hand-parse a BA frame.

-a

Quoted 23 lines · Olivier Marce

Hi everybody,
thanks to all of you who share your knowledge and expertise on ath9k.

I wonder if Ack and Block Ack are processed directly by the HW on receipt and not the firmware.

There are several messages that confirm that Ack and Block Ack are *sent* by HW (http://www.spinics.net/lists/linux-wireless/msg106950.html)
But are they processed (on receipt) also by HW ? I analysed firmware code and I did not find any Ack/BA processing.

Is my understanding correct ?

Best regards

--
Olivier Marc?
Alcatel-Lucent Bell Labs France
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Signature · 2 lines
Olivier Marc?
Alcatel-Lucent Bell Labs France
#3 lore raw

as Adrian said we got information received in a BlockACK (ath_tx_complete_aggr in xmit.c)
you get a bitmap, SSN and retires done for AMPDU.

Quoted 52 lines · Olivier Marce

Thanks for the quick and precise answer.

Then, I wonder is there is a way to be notified of sending/receiving of frames by the HW. For example, can we be notified of ACK (or BA) received and processed by the HW, or by frame retransmited by the HW ?

Thanks

Quoted 11 lines · Adrian Chadd

Hi,

So on the Atheros NICs, the block-acks are generated by the receiver in hardware and processed by the transmitter in hardware; you then get a bitmap in the TX completion descriptor telling you which frames did succeed/fail.

The TX completion path does check the two 32 bit blockack (ba) fields in the TX descriptor for completion. It doesn't hand-parse a BA frame.

Quoted 13 lines

-a

Quoted 8 lines · Olivier Marce

Hi everybody,
thanks to all of you who share your knowledge and expertise on ath9k.

I wonder if Ack and Block Ack are processed directly by the HW on receipt and not the firmware.

There are several messages that confirm that Ack and Block Ack are *sent* by HW (

http://www.spinics.net/lists/linux-wireless/msg106950.html)

Quoted 8 lines
Quoted 8 lines

But are they processed (on receipt) also by HW ? I analysed firmware code and I did not find any Ack/BA processing.

Is my understanding correct ?

Best regards

Quoted 9 lines
Quoted 7 lines

--
Olivier Marc?
Alcatel-Lucent Bell Labs France
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Quoted 8 lines

--
Olivier Marc?
Alcatel-Lucent Bell Labs France
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20140210/08182b15/attachment.htm

#4 lore raw

Hi Kamram,
thanks, this is a useful information indeed.
But my question was about to get notified of the details of exchange between emitter and transmitter. E.g. how many retries have been needed to get the a MPDU to be acked.

Quoted 75 lines · Kamran Nishat

as Adrian said we got information received in a BlockACK (ath_tx_complete_aggr in xmit.c)
you get a bitmap, SSN and retires done for AMPDU.

On Mon, Feb 10, 2014 at 1:57 PM, Olivier Marce
<[email protected]
<mailto:[email protected]>> wrote:

Thanks for the quick and precise answer.

Then, I wonder is there is a way to be notified of sending/receiving of frames by the HW. For example, can we be notified of ACK (or BA) received and processed by the HW, or by frame retransmited by the HW ?

Thanks

On 03/02/2014 17:29, Adrian Chadd wrote:
> Hi,
>
> So on the Atheros NICs, the block-acks are generated by the receiver > in hardware and processed by the transmitter in hardware; you
then get
> a bitmap in the TX completion descriptor telling you which frames did > succeed/fail.
>
> The TX completion path does check the two 32 bit blockack (ba) fields > in the TX descriptor for completion. It doesn't hand-parse a BA
frame.
>
>
> -a
>
>
> On 3 February 2014 07:48, Olivier Marce
> <[email protected]
<mailto:[email protected]>> wrote:
>> Hi everybody,
>> thanks to all of you who share your knowledge and expertise on
ath9k.
>>
>> I wonder if Ack and Block Ack are processed directly by the HW on >> receipt and not the firmware.
>>
>> There are several messages that confirm that Ack and Block Ack are >> *sent* by HW
(http://www.spinics.net/lists/linux-wireless/msg106950.html)
>> But are they processed (on receipt) also by HW ? I analysed firmware >> code and I did not find any Ack/BA processing.
>>
>> Is my understanding correct ?
>>
>> Best regards
>>
>>
>> --
>> Olivier Marc?
>> Alcatel-Lucent Bell Labs France
>> _______________________________________________
>> ath9k-devel mailing list
>> ath9k-devel at lists.ath9k.org <mailto:[email protected]> >> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>
>

--
Olivier Marc?
Alcatel-Lucent Bell Labs France
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org <mailto:[email protected]>
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Signature · 2 lines
Olivier Marc?
Alcatel-Lucent Bell Labs France
#5 lore raw

Hi Kamran,

Quoted 5 lines

But my question was about to get notified of the details of exchange between emitter and transmitter. E.g. how many retries have been needed to get the a MPDU to be acked.

Read xmit.c about the retry counts for each MPDU.

I am not clear what happens for AMPDU,
but essentially you give a buffer (chain of mpdus or one ampdu ) to the hardware
and once it's done with it, it gives a callback with details in the transmit descriptor.
You can extract information from there
struct ath_tx_status *ts is the descriptor, which fills details into the mac80211 struct ieee80211_tx_info *

-
Abhinav

Quoted 85 lines · Kamran Nishat
Quoted 6 lines

as Adrian said we got information received in a BlockACK (ath_tx_complete_aggr in xmit.c)
you get a bitmap, SSN and retires done for AMPDU.

Quoted 7 lines

On Mon, Feb 10, 2014 at 1:57 PM, Olivier Marce
<[email protected]
<mailto:[email protected]>> wrote:

Thanks for the quick and precise answer.

Then, I wonder is there is a way to be notified of sending/receiving

of

Quoted 2 lines

frames by the HW. For example, can we be notified of ACK (or BA) received and processed by the HW, or by frame retransmited by the HW

?

Quoted 7 lines
    Thanks

    On 03/02/2014 17:29, Adrian Chadd wrote:
     > Hi,
     >
     > So on the Atheros NICs, the block-acks are generated by the

receiver

Quoted 3 lines

> in hardware and processed by the transmitter in hardware; you
then get
> a bitmap in the TX completion descriptor telling you which frames

did

Quoted 3 lines

> succeed/fail.
>
> The TX completion path does check the two 32 bit blockack (ba)

fields

Quoted 10 lines
     > in the TX descriptor for completion. It doesn't hand-parse a BA
    frame.
     >
     >
     > -a
     >
     >
     > On 3 February 2014 07:48, Olivier Marce
     > <[email protected]
    <mailto:[email protected]>> wrote:
Quoted 8 lines
     >> Hi everybody,
     >> thanks to all of you who share your knowledge and expertise on
    ath9k.
     >>
     >> I wonder if Ack and Block Ack are processed directly by the HW on
     >> receipt and not the firmware.
     >>
     >> There are several messages that confirm that Ack and Block Ack

are

Quoted 3 lines
     >> *sent* by HW
    (http://www.spinics.net/lists/linux-wireless/msg106950.html)
     >> But are they processed (on receipt) also by HW ? I analysed

firmware

Quoted 17 lines

>> code and I did not find any Ack/BA processing.
>>
>> Is my understanding correct ?
>>
>> Best regards
>>
>>
>> --
>> Olivier Marc?
>> Alcatel-Lucent Bell Labs France
>> _______________________________________________
>> ath9k-devel mailing list
>> ath9k-devel at lists.ath9k.org <mailto:[email protected]> >> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>
>

Quoted 9 lines

--
Olivier Marc?
Alcatel-Lucent Bell Labs France
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org <mailto:[email protected]>
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Quoted 8 lines

--
Olivier Marc?
Alcatel-Lucent Bell Labs France
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20140210/10b30251/attachment.htm

#6 lore raw
In reply to Olivier Marce

Hi,

Quoted 3 lines

I wonder if Ack and Block Ack are processed directly by the HW on receipt and not the firmware.

Please correct me if I am wrong, ath9k series drivers directly interact
with hardware.
I haven't seen any code where the driver talks to firmware.

Thanks,
Abhinav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20140203/f1dc7962/attachment.htm