Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253034
b: refs/heads/master
c: 0019a2c
h: refs/heads/master
v: v3
  • Loading branch information
Larry Finger authored and John W. Linville committed May 26, 2011
1 parent d5caca1 commit ce6cb85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a9e12869758430424804dd4332e0d2afdfdf00b0
refs/heads/master: 0019a2c9277bf6d083032a5a9857249e75407a8c
7 changes: 7 additions & 0 deletions trunk/drivers/net/wireless/rtlwifi/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,13 @@ static int _rtl_pci_init_rx_ring(struct ieee80211_hw *hw)

rtlpci->rx_ring[rx_queue_idx].idx = 0;

/* If amsdu_8k is disabled, set buffersize to 4096. This
* change will reduce memory fragmentation.
*/
if (rtlpci->rxbuffersize > 4096 &&
rtlpriv->rtlhal.disable_amsdu_8k)
rtlpci->rxbuffersize = 4096;

for (i = 0; i < rtlpci->rxringcount; i++) {
struct sk_buff *skb =
dev_alloc_skb(rtlpci->rxbuffersize);
Expand Down

0 comments on commit ce6cb85

Please sign in to comment.