Repository navigation
Commit 2e3049b
mac80211: do not compute offset from ssn in Rx AMPDU reordering buffer
Currently, frames that go into the reordering buffer are stored at
index ieee80211_sn_sub(sn, tid_rx->ssn) % tid_rx->buf_size.
The offset calculation to the starting sequence number (SSN) is
useless and just adds overhead so simply use sn % tid_rx->buf_size.
This means the reordering buffer will start to be filled somewhere
in the middle (at SSN % buf_size) and continue to get used from
there, but there's no reason to start from the beginning.
Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
[rewrite commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>1 parent 8fe02e1 commit 2e3049b
1 file changed
Lines changed: 5 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
732 | | - | |
733 | | - | |
734 | | - | |
| 732 | + | |
735 | 733 | | |
736 | 734 | | |
737 | 735 | | |
| |||
757 | 755 | | |
758 | 756 | | |
759 | 757 | | |
760 | | - | |
761 | | - | |
| 758 | + | |
762 | 759 | | |
763 | 760 | | |
764 | 761 | | |
| |||
793 | 790 | | |
794 | 791 | | |
795 | 792 | | |
796 | | - | |
797 | | - | |
798 | | - | |
| 793 | + | |
799 | 794 | | |
800 | 795 | | |
801 | 796 | | |
802 | | - | |
803 | | - | |
804 | | - | |
| 797 | + | |
805 | 798 | | |
806 | 799 | | |
807 | 800 | | |
| |||
861 | 854 | | |
862 | 855 | | |
863 | 856 | | |
864 | | - | |
865 | | - | |
| 857 | + | |
866 | 858 | | |
867 | 859 | | |
868 | 860 | | |
| |||
0 commit comments