Skip to content

Commit

Permalink
wireless/bcm43xxx: enable tx flow control to improve performance
Browse files Browse the repository at this point in the history
RX/TX shared free queue on bcmf implementation, if TX occupies the
free queue completely, RX will trigger read abort because it cannot
alloc buffer successfully from the shared free queue. This commit will
limit the sending entries of tx and prevent rx triggering abort

Signed-off-by: chao.an <anchao@xiaomi.com>
  • Loading branch information
anchao committed Jun 28, 2022
1 parent 98e2e92 commit 38ebe35
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,11 +1065,9 @@ struct bcmf_sdio_frame *bcmf_sdio_allocate_frame(FAR struct bcmf_dev_s *priv,
DEBUGPANIC();
}

#if 0
if (!tx ||
sbus->tx_queue_count <
CONFIG_IEEE80211_BROADCOM_FRAME_POOL_SIZE - 1)
#endif
CONFIG_IEEE80211_BROADCOM_FRAME_POOL_SIZE / 2)
{
if ((entry = bcmf_dqueue_pop_tail(&sbus->free_queue)) != NULL)
{
Expand Down

0 comments on commit 38ebe35

Please sign in to comment.