You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/08/08 10:36:19 UTC

[incubator-nuttx] branch master updated: drivers: usbdev: Fix default value for RNDIS_NWRREQS

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 3b76666  drivers: usbdev: Fix default value for RNDIS_NWRREQS
3b76666 is described below

commit 3b76666a1e7e99768edb10ed2bc4800d1cdaf969
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Sat Aug 8 13:08:20 2020 +0900

    drivers: usbdev: Fix default value for RNDIS_NWRREQS
    
    Summary:
    - Change default value for RNDIS_NWRREQS based on NET_TCP_WRITE_BUFFERS
    
    Impact:
    - This commit affects RNDIS use cases
    
    Testing:
    - spresense:rndis with CONFIG_NET_TCP_WRITE_BUFFERS=y
    
    Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
 drivers/usbdev/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/usbdev/Kconfig b/drivers/usbdev/Kconfig
index 8512e27..808cd35 100644
--- a/drivers/usbdev/Kconfig
+++ b/drivers/usbdev/Kconfig
@@ -744,7 +744,8 @@ if RNDIS
 
 config RNDIS_NWRREQS
 	int "The number of write requests that can be in flight"
-	default 2
+	default 4 if NET_TCP_WRITE_BUFFERS
+	default 2 if !NET_TCP_WRITE_BUFFERS
 	---help---
 		The number of write/read requests that can be in flight