]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: do not compute offset from ssn in Rx AMPDU reordering buffer
authorKarl Beldan <karl.beldan@rivierawaves.com>
Thu, 24 Oct 2013 13:53:32 +0000 (15:53 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 19:49:36 +0000 (20:49 +0100)
commitb8326917915d650b770a36cbba3ad117d1fb18e1
treeb83e9e48ab8b041361ce358c9d823217ff018260
parentc78d6e88a5660e984ddbcee68e611c3ad1e7036b
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>
net/mac80211/rx.c