svn commit: r309821 - head/sys/dev/usb/wlan

Andriy Voskoboinyk avos at FreeBSD.org
Sat Dec 10 17:06:57 UTC 2016


Author: avos
Date: Sat Dec 10 17:06:55 2016
New Revision: 309821
URL: https://svnweb.freebsd.org/changeset/base/309821

Log:
  rsu: increase Rx buffer size from 8k to 30k.
  
  This is required for USB Rx aggregation
  (and fixes 'could not allocate RX mbuf' / few other failures).
  
  While here, reduce the number of Rx buffers from 100 to 1 -
  the driver never uses more than one Rx buffer.
  
  Tested with Asus USB-N10.

Modified:
  head/sys/dev/usb/wlan/if_rsureg.h

Modified: head/sys/dev/usb/wlan/if_rsureg.h
==============================================================================
--- head/sys/dev/usb/wlan/if_rsureg.h	Sat Dec 10 16:41:55 2016	(r309820)
+++ head/sys/dev/usb/wlan/if_rsureg.h	Sat Dec 10 17:06:55 2016	(r309821)
@@ -688,10 +688,10 @@ struct r92s_add_ba_req {
 /*
  * Driver definitions.
  */
-#define RSU_RX_LIST_COUNT	100
+#define RSU_RX_LIST_COUNT	1
 #define RSU_TX_LIST_COUNT	32
 
-#define RSU_RXBUFSZ	(8 * 1024)
+#define RSU_RXBUFSZ	(30 * 1024)
 #define RSU_TXBUFSZ	\
 	((sizeof(struct r92s_tx_desc) + IEEE80211_MAX_LEN + 3) & ~3)
 


More information about the svn-src-all mailing list