diff --git a/arch/arm/src/common/up_initialize.c b/arch/arm/src/common/up_initialize.c index 5182598246..ecf6400d33 100644 --- a/arch/arm/src/common/up_initialize.c +++ b/arch/arm/src/common/up_initialize.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/arm/src/common/up_initialize.c * - * Copyright (C) 2007-2010, 2012-2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2010, 2012-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -190,9 +191,14 @@ void up_initialize(void) arm_timer_initialize(); #endif - /* Register devices */ +#ifdef CONFIG_DRIVERS_IOB + /* Initialize IO buffering */ + + iob_initialize(); +#endif #if CONFIG_NFILE_DESCRIPTORS > 0 + /* Register devices */ #if defined(CONFIG_DEV_NULL) devnull_register(); /* Standard /dev/null */ diff --git a/arch/avr/src/common/up_initialize.c b/arch/avr/src/common/up_initialize.c index 3db612d237..738f9b27d6 100644 --- a/arch/avr/src/common/up_initialize.c +++ b/arch/avr/src/common/up_initialize.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/avr/src/common/up_initialize.c * - * Copyright (C) 2010, 2012-2013, 2015-2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2012-2013, 2015-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include #include +#include #include #include #include @@ -231,9 +232,14 @@ void up_initialize(void) avr_timer_initialize(); #endif - /* Register devices */ +#ifdef CONFIG_DRIVERS_IOB + /* Initialize IO buffering */ + + iob_initialize(); +#endif #if CONFIG_NFILE_DESCRIPTORS > 0 + /* Register devices */ #if defined(CONFIG_DEV_NULL) devnull_register(); /* Standard /dev/null */ diff --git a/arch/hc/src/common/up_initialize.c b/arch/hc/src/common/up_initialize.c index b4d3fcde07..0484c8ffc3 100644 --- a/arch/hc/src/common/up_initialize.c +++ b/arch/hc/src/common/up_initialize.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/hc/src/common/up_initialize.c * - * Copyright (C) 2009-2010, 2012-2013, 2015-2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2009-2010, 2012-2013, 2015-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -157,9 +158,14 @@ void up_initialize(void) hc_timer_initialize(); #endif - /* Register devices */ +#ifdef CONFIG_DRIVERS_IOB + /* Initialize IO buffering */ + + iob_initialize(); +#endif #if CONFIG_NFILE_DESCRIPTORS > 0 + /* Register devices */ #if defined(CONFIG_DEV_NULL) devnull_register(); /* Standard /dev/null */ diff --git a/arch/mips/src/common/up_initialize.c b/arch/mips/src/common/up_initialize.c index a07c189cf6..7e301be7b0 100644 --- a/arch/mips/src/common/up_initialize.c +++ b/arch/mips/src/common/up_initialize.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/mips/src/common/up_initialize.c * - * Copyright (C) 2011-2013, 2015-2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2011-2013, 2015-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -159,9 +160,14 @@ void up_initialize(void) mips_timer_initialize(); #endif - /* Register devices */ +#ifdef CONFIG_DRIVERS_IOB + /* Initialize IO buffering */ + + iob_initialize(); +#endif #if CONFIG_NFILE_DESCRIPTORS > 0 + /* Register devices */ #if defined(CONFIG_DEV_NULL) devnull_register(); /* Standard /dev/null */ diff --git a/arch/misoc/src/lm32/lm32_initialize.c b/arch/misoc/src/lm32/lm32_initialize.c index 1c4323215a..8371a9a39f 100644 --- a/arch/misoc/src/lm32/lm32_initialize.c +++ b/arch/misoc/src/lm32/lm32_initialize.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/misoc/src/lm32/lm32_initialize.c * - * Copyright (C) 2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * Ramtin Amin * @@ -44,6 +44,7 @@ #include #include +#include #include #include #include @@ -78,8 +79,13 @@ void up_initialize(void) misoc_timer_initialize(); +#ifdef CONFIG_DRIVERS_IOB + /* Initialize IO buffering */ + + iob_initialize(); +#endif + /* Initialize the network cores */ misoc_net_initialize(0); - } diff --git a/arch/renesas/src/common/up_initialize.c b/arch/renesas/src/common/up_initialize.c index 49fc1f55d1..ad8756e48e 100644 --- a/arch/renesas/src/common/up_initialize.c +++ b/arch/renesas/src/common/up_initialize.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/renesas/src/common/up_initialize.c * - * Copyright (C) 2008-2010, 2012-2013, 2015-2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2010, 2012-2013, 2015-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -148,9 +149,14 @@ void up_initialize(void) renesas_timer_initialize(); #endif - /* Register devices */ +#ifdef CONFIG_DRIVERS_IOB + /* Initialize IO buffering */ + + iob_initialize(); +#endif #if CONFIG_NFILE_DESCRIPTORS > 0 + /* Register devices */ #if defined(CONFIG_DEV_NULL) devnull_register(); /* Standard /dev/null */ diff --git a/arch/risc-v/src/common/up_initialize.c b/arch/risc-v/src/common/up_initialize.c index 205768b00d..f0a86dfd45 100644 --- a/arch/risc-v/src/common/up_initialize.c +++ b/arch/risc-v/src/common/up_initialize.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/risc-v/src/common/up_initialize.c * - * Copyright (C) 2007-2010, 2012-2015 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2010, 2012-2015, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -43,20 +43,13 @@ #include #include +#include #include #include "up_arch.h" #include "up_internal.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -/**************************************************************************** - * Private Types - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ @@ -158,9 +151,14 @@ void up_initialize(void) riscv_timer_initialize(); #endif - /* Register devices */ +#ifdef CONFIG_DRIVERS_IOB + /* Initialize IO buffering */ + + iob_initialize(); +#endif #if CONFIG_NFILE_DESCRIPTORS > 0 + /* Register devices */ #if defined(CONFIG_DEV_NULL) devnull_register(); /* Standard /dev/null */ diff --git a/arch/sim/src/up_initialize.c b/arch/sim/src/up_initialize.c index 5b3f1c0e9f..d618ebac70 100644 --- a/arch/sim/src/up_initialize.c +++ b/arch/sim/src/up_initialize.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/sim/src/up_initialize.c * - * Copyright (C) 2007-2009, 2011-2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2011-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include #include +#include #include #include #include @@ -200,6 +201,12 @@ void up_initialize(void) up_pminitialize(); #endif +#ifdef CONFIG_DRIVERS_IOB + /* Initialize IO buffering */ + + iob_initialize(); +#endif + #if CONFIG_NFILE_DESCRIPTORS > 0 /* Register devices */ diff --git a/arch/x86/src/common/up_initialize.c b/arch/x86/src/common/up_initialize.c index 2817204734..f5f6f7a0e0 100644 --- a/arch/x86/src/common/up_initialize.c +++ b/arch/x86/src/common/up_initialize.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/x86/src/common/up_initialize.c * - * Copyright (C) 2011-2013, 2015-2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2011-2013, 2015-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -159,9 +160,14 @@ void up_initialize(void) x86_timer_initialize(); #endif - /* Register devices */ +#ifdef CONFIG_DRIVERS_IOB + /* Initialize IO buffering */ + + iob_initialize(); +#endif #if CONFIG_NFILE_DESCRIPTORS > 0 + /* Register devices */ #if defined(CONFIG_DEV_NULL) devnull_register(); /* Standard /dev/null */ diff --git a/arch/xtensa/src/common/xtensa_initialize.c b/arch/xtensa/src/common/xtensa_initialize.c index 2041548b17..f3ad78392a 100644 --- a/arch/xtensa/src/common/xtensa_initialize.c +++ b/arch/xtensa/src/common/xtensa_initialize.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/xtensa/src/common/xtensa_initialize.c * - * Copyright (C) 2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -161,15 +162,20 @@ void up_initialize(void) } #endif +#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS) /* Initialize the system timer interrupt */ -#if !defined(CONFIG_SUPPRESS_INTERRUPTS) && !defined(CONFIG_SUPPRESS_TIMER_INTS) xtensa_timer_initialize(); #endif - /* Register devices */ +#ifdef CONFIG_DRIVERS_IOB + /* Initialize IO buffering */ + + iob_initialize(); +#endif #if CONFIG_NFILE_DESCRIPTORS > 0 + /* Register devices */ #if defined(CONFIG_DEV_NULL) devnull_register(); /* Standard /dev/null */ diff --git a/arch/z16/src/common/up_initialize.c b/arch/z16/src/common/up_initialize.c index 59ee8138cd..c04e342ab9 100644 --- a/arch/z16/src/common/up_initialize.c +++ b/arch/z16/src/common/up_initialize.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/z16/src/common/up_initialize.c * - * Copyright (C) 2008-2009, 2011-2013, 2015-2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009, 2011-2013, 2015-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -159,9 +160,14 @@ void up_initialize(void) z16_timer_initialize(); #endif - /* Register devices */ +#ifdef CONFIG_DRIVERS_IOB + /* Initialize IO buffering */ + + iob_initialize(); +#endif #if CONFIG_NFILE_DESCRIPTORS > 0 + /* Register devices */ #if defined(CONFIG_DEV_NULL) devnull_register(); /* Standard /dev/null */ diff --git a/arch/z80/src/common/up_initialize.c b/arch/z80/src/common/up_initialize.c index 036ce03b37..bedf28b0b0 100644 --- a/arch/z80/src/common/up_initialize.c +++ b/arch/z80/src/common/up_initialize.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/z80/src/common/up_initialize.c * - * Copyright (C) 2007-2009, 2012-2013, 2015-2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2012-2013, 2015-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -156,9 +157,14 @@ void up_initialize(void) (void)up_mmuinit(); #endif - /* Register devices */ +#ifdef CONFIG_DRIVERS_IOB + /* Initialize IO buffering */ + + iob_initialize(); +#endif #if CONFIG_NFILE_DESCRIPTORS > 0 + /* Register devices */ #if defined(CONFIG_DEV_NULL) devnull_register(); /* Standard /dev/null */ diff --git a/configs/bambino-200e/netnsh/defconfig b/configs/bambino-200e/netnsh/defconfig index 5461560e92..83ae5fe9a8 100644 --- a/configs/bambino-200e/netnsh/defconfig +++ b/configs/bambino-200e/netnsh/defconfig @@ -484,6 +484,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -751,14 +759,6 @@ CONFIG_NET_ARP_MAXAGE=120 CONFIG_NET_ARP_IPIN=y # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/c5471evm/httpd/defconfig b/configs/c5471evm/httpd/defconfig index 384749cd6e..b844eb004a 100644 --- a/configs/c5471evm/httpd/defconfig +++ b/configs/c5471evm/httpd/defconfig @@ -366,6 +366,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -576,14 +584,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/c5471evm/nettest/defconfig b/configs/c5471evm/nettest/defconfig index 5e09afbe28..d371baf706 100644 --- a/configs/c5471evm/nettest/defconfig +++ b/configs/c5471evm/nettest/defconfig @@ -354,6 +354,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -564,14 +572,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/c5471evm/nsh/defconfig b/configs/c5471evm/nsh/defconfig index c00123dcc9..9c26f594e8 100644 --- a/configs/c5471evm/nsh/defconfig +++ b/configs/c5471evm/nsh/defconfig @@ -366,6 +366,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -582,14 +590,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/cloudctrl/nsh/defconfig b/configs/cloudctrl/nsh/defconfig index 1ee28dce24..54f875306e 100644 --- a/configs/cloudctrl/nsh/defconfig +++ b/configs/cloudctrl/nsh/defconfig @@ -757,6 +757,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1049,14 +1057,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/dk-tm4c129x/ipv6/defconfig b/configs/dk-tm4c129x/ipv6/defconfig index 4b327ef4d0..3eaecb19c5 100644 --- a/configs/dk-tm4c129x/ipv6/defconfig +++ b/configs/dk-tm4c129x/ipv6/defconfig @@ -502,6 +502,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -784,15 +793,6 @@ CONFIG_ICMPv6_NEIGHBOR_DELAYMSEC=20 # ARP Configuration # -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/dk-tm4c129x/nsh/defconfig b/configs/dk-tm4c129x/nsh/defconfig index 617b987820..6fb8a008ea 100644 --- a/configs/dk-tm4c129x/nsh/defconfig +++ b/configs/dk-tm4c129x/nsh/defconfig @@ -502,6 +502,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -787,15 +796,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/eagle100/httpd/defconfig b/configs/eagle100/httpd/defconfig index 7d8d5fba78..3af19d1584 100644 --- a/configs/eagle100/httpd/defconfig +++ b/configs/eagle100/httpd/defconfig @@ -470,6 +470,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -710,14 +718,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/eagle100/nettest/defconfig b/configs/eagle100/nettest/defconfig index 443f3ecbac..06adb40d7b 100644 --- a/configs/eagle100/nettest/defconfig +++ b/configs/eagle100/nettest/defconfig @@ -458,6 +458,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -697,14 +705,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/eagle100/nsh/defconfig b/configs/eagle100/nsh/defconfig index f890cdbc10..22bed91050 100644 --- a/configs/eagle100/nsh/defconfig +++ b/configs/eagle100/nsh/defconfig @@ -481,6 +481,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -748,14 +756,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/eagle100/thttpd/defconfig b/configs/eagle100/thttpd/defconfig index bf7e936ec7..cdd4eecb3f 100644 --- a/configs/eagle100/thttpd/defconfig +++ b/configs/eagle100/thttpd/defconfig @@ -449,6 +449,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -691,14 +699,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/ekk-lm3s9b96/nsh/defconfig b/configs/ekk-lm3s9b96/nsh/defconfig index 979386f809..c26cb06d91 100644 --- a/configs/ekk-lm3s9b96/nsh/defconfig +++ b/configs/ekk-lm3s9b96/nsh/defconfig @@ -468,6 +468,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -735,14 +743,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/ez80f910200zco/dhcpd/defconfig b/configs/ez80f910200zco/dhcpd/defconfig index ad915adc28..0b61941b7a 100644 --- a/configs/ez80f910200zco/dhcpd/defconfig +++ b/configs/ez80f910200zco/dhcpd/defconfig @@ -337,6 +337,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=8 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -589,14 +597,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=8 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/ez80f910200zco/httpd/defconfig b/configs/ez80f910200zco/httpd/defconfig index 30dee6ec58..77a0e30b06 100644 --- a/configs/ez80f910200zco/httpd/defconfig +++ b/configs/ez80f910200zco/httpd/defconfig @@ -349,6 +349,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -608,14 +616,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/ez80f910200zco/nettest/defconfig b/configs/ez80f910200zco/nettest/defconfig index 8d6a8b3dd0..15cbb1da5d 100644 --- a/configs/ez80f910200zco/nettest/defconfig +++ b/configs/ez80f910200zco/nettest/defconfig @@ -337,6 +337,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -595,14 +603,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/ez80f910200zco/nsh/defconfig b/configs/ez80f910200zco/nsh/defconfig index f1271c3d19..3db4c5cc00 100644 --- a/configs/ez80f910200zco/nsh/defconfig +++ b/configs/ez80f910200zco/nsh/defconfig @@ -349,6 +349,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -616,14 +624,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/ez80f910200zco/poll/defconfig b/configs/ez80f910200zco/poll/defconfig index 521e76d910..53541fe0fb 100644 --- a/configs/ez80f910200zco/poll/defconfig +++ b/configs/ez80f910200zco/poll/defconfig @@ -349,6 +349,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -610,14 +618,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/fire-stm32v2/nsh/defconfig b/configs/fire-stm32v2/nsh/defconfig index 8cada6692f..a2f7defdf1 100644 --- a/configs/fire-stm32v2/nsh/defconfig +++ b/configs/fire-stm32v2/nsh/defconfig @@ -766,6 +766,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1106,14 +1114,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/freedom-k64f/netnsh/defconfig b/configs/freedom-k64f/netnsh/defconfig index 6634ed2337..ac209b3a8b 100644 --- a/configs/freedom-k64f/netnsh/defconfig +++ b/configs/freedom-k64f/netnsh/defconfig @@ -497,6 +497,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -766,15 +775,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/freedom-k66f/netnsh/defconfig b/configs/freedom-k66f/netnsh/defconfig index 0dffbe5d56..dbb26035ea 100644 --- a/configs/freedom-k66f/netnsh/defconfig +++ b/configs/freedom-k66f/netnsh/defconfig @@ -506,6 +506,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -794,15 +803,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/lincoln60/netnsh/defconfig b/configs/lincoln60/netnsh/defconfig index bb7a78a93c..ca17f4e7b4 100644 --- a/configs/lincoln60/netnsh/defconfig +++ b/configs/lincoln60/netnsh/defconfig @@ -459,6 +459,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -728,15 +737,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/lincoln60/thttpd-binfs/defconfig b/configs/lincoln60/thttpd-binfs/defconfig index 0f3690c7fd..c659979d94 100644 --- a/configs/lincoln60/thttpd-binfs/defconfig +++ b/configs/lincoln60/thttpd-binfs/defconfig @@ -436,6 +436,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -699,15 +708,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/lm3s6432-s2e/nsh/defconfig b/configs/lm3s6432-s2e/nsh/defconfig index 27f1e85a50..675a7b6c17 100644 --- a/configs/lm3s6432-s2e/nsh/defconfig +++ b/configs/lm3s6432-s2e/nsh/defconfig @@ -463,6 +463,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -725,14 +733,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/lm3s6965-ek/discover/defconfig b/configs/lm3s6965-ek/discover/defconfig index cc4fc1715d..838fbeac02 100644 --- a/configs/lm3s6965-ek/discover/defconfig +++ b/configs/lm3s6965-ek/discover/defconfig @@ -473,6 +473,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -740,14 +748,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/lm3s6965-ek/nsh/defconfig b/configs/lm3s6965-ek/nsh/defconfig index cc4fc1715d..838fbeac02 100644 --- a/configs/lm3s6965-ek/nsh/defconfig +++ b/configs/lm3s6965-ek/nsh/defconfig @@ -473,6 +473,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -740,14 +748,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/lm3s6965-ek/tcpecho/defconfig b/configs/lm3s6965-ek/tcpecho/defconfig index c3b2d038cb..ac6fd9a2bd 100644 --- a/configs/lm3s6965-ek/tcpecho/defconfig +++ b/configs/lm3s6965-ek/tcpecho/defconfig @@ -462,6 +462,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -711,14 +719,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/lm3s8962-ek/nsh/defconfig b/configs/lm3s8962-ek/nsh/defconfig index 5d1599a47d..de5e95e743 100644 --- a/configs/lm3s8962-ek/nsh/defconfig +++ b/configs/lm3s8962-ek/nsh/defconfig @@ -485,6 +485,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -752,14 +760,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/lpcxpresso-lpc1768/dhcpd/defconfig b/configs/lpcxpresso-lpc1768/dhcpd/defconfig index 599b3001a0..d18c05e9e4 100644 --- a/configs/lpcxpresso-lpc1768/dhcpd/defconfig +++ b/configs/lpcxpresso-lpc1768/dhcpd/defconfig @@ -426,6 +426,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=8 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -679,14 +687,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=8 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/lpcxpresso-lpc1768/nsh/defconfig b/configs/lpcxpresso-lpc1768/nsh/defconfig index fdf6ac732e..0a2f6da13d 100644 --- a/configs/lpcxpresso-lpc1768/nsh/defconfig +++ b/configs/lpcxpresso-lpc1768/nsh/defconfig @@ -449,6 +449,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -765,14 +773,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/lpcxpresso-lpc1768/thttpd/defconfig b/configs/lpcxpresso-lpc1768/thttpd/defconfig index 6eedaf96c6..ac12426f49 100644 --- a/configs/lpcxpresso-lpc1768/thttpd/defconfig +++ b/configs/lpcxpresso-lpc1768/thttpd/defconfig @@ -426,6 +426,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -687,14 +695,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/misoc/hello/defconfig b/configs/misoc/hello/defconfig index da8283d9ff..bb25f3c366 100644 --- a/configs/misoc/hello/defconfig +++ b/configs/misoc/hello/defconfig @@ -318,6 +318,16 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 +# CONFIG_IOB_DEBUG is not set # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -584,16 +594,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 -# CONFIG_IOB_DEBUG is not set - # # User-space networking stack API # diff --git a/configs/moxa/nsh/defconfig b/configs/moxa/nsh/defconfig index a368f1171a..6a45427b5c 100644 --- a/configs/moxa/nsh/defconfig +++ b/configs/moxa/nsh/defconfig @@ -354,6 +354,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -613,15 +622,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/ntosd-dm320/nettest/defconfig b/configs/ntosd-dm320/nettest/defconfig index a7bafa1d08..638279f138 100644 --- a/configs/ntosd-dm320/nettest/defconfig +++ b/configs/ntosd-dm320/nettest/defconfig @@ -336,6 +336,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -603,14 +611,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/ntosd-dm320/nsh/defconfig b/configs/ntosd-dm320/nsh/defconfig index a40c5d29f9..1283565c72 100644 --- a/configs/ntosd-dm320/nsh/defconfig +++ b/configs/ntosd-dm320/nsh/defconfig @@ -348,6 +348,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -630,14 +638,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/ntosd-dm320/poll/defconfig b/configs/ntosd-dm320/poll/defconfig index 17b6151dea..8f179e8ce8 100644 --- a/configs/ntosd-dm320/poll/defconfig +++ b/configs/ntosd-dm320/poll/defconfig @@ -348,6 +348,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -619,14 +627,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/ntosd-dm320/thttpd/defconfig b/configs/ntosd-dm320/thttpd/defconfig index 3bdeaf23ac..d146c17293 100644 --- a/configs/ntosd-dm320/thttpd/defconfig +++ b/configs/ntosd-dm320/thttpd/defconfig @@ -336,6 +336,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -607,14 +615,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/ntosd-dm320/udp/defconfig b/configs/ntosd-dm320/udp/defconfig index fbf8eb5185..24ea1fe49f 100644 --- a/configs/ntosd-dm320/udp/defconfig +++ b/configs/ntosd-dm320/udp/defconfig @@ -336,6 +336,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=8 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -597,14 +605,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=8 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/ntosd-dm320/webserver/defconfig b/configs/ntosd-dm320/webserver/defconfig index a35c7abb37..4f1b363d1c 100644 --- a/configs/ntosd-dm320/webserver/defconfig +++ b/configs/ntosd-dm320/webserver/defconfig @@ -348,6 +348,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -615,14 +623,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-lpc1766stk/ftpc/defconfig b/configs/olimex-lpc1766stk/ftpc/defconfig index a68e6d292e..ed46ca4e7f 100644 --- a/configs/olimex-lpc1766stk/ftpc/defconfig +++ b/configs/olimex-lpc1766stk/ftpc/defconfig @@ -449,6 +449,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -732,14 +740,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-lpc1766stk/hidmouse/defconfig b/configs/olimex-lpc1766stk/hidmouse/defconfig index aecd251b1e..0dec1bcdc8 100644 --- a/configs/olimex-lpc1766stk/hidmouse/defconfig +++ b/configs/olimex-lpc1766stk/hidmouse/defconfig @@ -463,6 +463,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -726,14 +734,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-lpc1766stk/nettest/defconfig b/configs/olimex-lpc1766stk/nettest/defconfig index e38fcf7f16..15d885ba0e 100644 --- a/configs/olimex-lpc1766stk/nettest/defconfig +++ b/configs/olimex-lpc1766stk/nettest/defconfig @@ -427,6 +427,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -685,14 +693,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-lpc1766stk/nsh/defconfig b/configs/olimex-lpc1766stk/nsh/defconfig index 8bbff74d8e..60f4e87f7c 100644 --- a/configs/olimex-lpc1766stk/nsh/defconfig +++ b/configs/olimex-lpc1766stk/nsh/defconfig @@ -450,6 +450,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -735,14 +743,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-lpc1766stk/slip-httpd/defconfig b/configs/olimex-lpc1766stk/slip-httpd/defconfig index 0259bd572a..e9a9fcd7f4 100644 --- a/configs/olimex-lpc1766stk/slip-httpd/defconfig +++ b/configs/olimex-lpc1766stk/slip-httpd/defconfig @@ -411,6 +411,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -650,14 +658,6 @@ CONFIG_NET_ICMP=y # ARP Configuration # -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-lpc1766stk/thttpd-binfs/defconfig b/configs/olimex-lpc1766stk/thttpd-binfs/defconfig index 5e83771e75..ec9ade8e7d 100644 --- a/configs/olimex-lpc1766stk/thttpd-binfs/defconfig +++ b/configs/olimex-lpc1766stk/thttpd-binfs/defconfig @@ -436,6 +436,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -697,14 +705,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-lpc1766stk/thttpd-nxflat/defconfig b/configs/olimex-lpc1766stk/thttpd-nxflat/defconfig index 22e39cf274..74a3e55d2b 100644 --- a/configs/olimex-lpc1766stk/thttpd-nxflat/defconfig +++ b/configs/olimex-lpc1766stk/thttpd-nxflat/defconfig @@ -427,6 +427,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -688,14 +696,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-lpc1766stk/zmodem/defconfig b/configs/olimex-lpc1766stk/zmodem/defconfig index d430891207..51526dd8b5 100644 --- a/configs/olimex-lpc1766stk/zmodem/defconfig +++ b/configs/olimex-lpc1766stk/zmodem/defconfig @@ -451,6 +451,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -750,14 +758,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-stm32-e407/discover/defconfig b/configs/olimex-stm32-e407/discover/defconfig index dca0ba9c65..9a2f223de3 100644 --- a/configs/olimex-stm32-e407/discover/defconfig +++ b/configs/olimex-stm32-e407/discover/defconfig @@ -760,6 +760,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1034,14 +1042,6 @@ CONFIG_NET_ARP_MAXAGE=120 CONFIG_NET_ARP_IPIN=y # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-stm32-e407/netnsh/defconfig b/configs/olimex-stm32-e407/netnsh/defconfig index 34486378ca..1969e3f313 100644 --- a/configs/olimex-stm32-e407/netnsh/defconfig +++ b/configs/olimex-stm32-e407/netnsh/defconfig @@ -760,6 +760,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1036,14 +1044,6 @@ CONFIG_NET_ARP_MAXAGE=120 CONFIG_NET_ARP_IPIN=y # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-stm32-e407/telnetd/defconfig b/configs/olimex-stm32-e407/telnetd/defconfig index 9768cb9553..349bf77be8 100644 --- a/configs/olimex-stm32-e407/telnetd/defconfig +++ b/configs/olimex-stm32-e407/telnetd/defconfig @@ -760,6 +760,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1036,14 +1044,6 @@ CONFIG_NET_ARP_MAXAGE=120 CONFIG_NET_ARP_IPIN=y # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-stm32-e407/webserver/defconfig b/configs/olimex-stm32-e407/webserver/defconfig index 4257b4218f..fa179cb794 100644 --- a/configs/olimex-stm32-e407/webserver/defconfig +++ b/configs/olimex-stm32-e407/webserver/defconfig @@ -760,6 +760,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1034,14 +1042,6 @@ CONFIG_NET_ARP_MAXAGE=120 CONFIG_NET_ARP_IPIN=y # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-stm32-p107/nsh/defconfig b/configs/olimex-stm32-p107/nsh/defconfig index 4df7a5586d..78dcb93ed4 100644 --- a/configs/olimex-stm32-p107/nsh/defconfig +++ b/configs/olimex-stm32-p107/nsh/defconfig @@ -727,6 +727,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1036,14 +1044,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-stm32-p207/nsh/defconfig b/configs/olimex-stm32-p207/nsh/defconfig index 315f0dba73..55de4e0d37 100644 --- a/configs/olimex-stm32-p207/nsh/defconfig +++ b/configs/olimex-stm32-p207/nsh/defconfig @@ -790,6 +790,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1079,14 +1087,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/olimex-strp711/nettest/defconfig b/configs/olimex-strp711/nettest/defconfig index 55e048aacd..50d63c8170 100644 --- a/configs/olimex-strp711/nettest/defconfig +++ b/configs/olimex-strp711/nettest/defconfig @@ -382,6 +382,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -649,14 +657,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/pic32mx-starterkit/nsh2/defconfig b/configs/pic32mx-starterkit/nsh2/defconfig index 12de402bbf..de8c688ac5 100644 --- a/configs/pic32mx-starterkit/nsh2/defconfig +++ b/configs/pic32mx-starterkit/nsh2/defconfig @@ -479,6 +479,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -775,14 +783,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/pic32mx7mmb/nsh/defconfig b/configs/pic32mx7mmb/nsh/defconfig index 4cfed72604..c1a7d79a6f 100644 --- a/configs/pic32mx7mmb/nsh/defconfig +++ b/configs/pic32mx7mmb/nsh/defconfig @@ -488,6 +488,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -838,14 +846,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/sam4e-ek/nsh/defconfig b/configs/sam4e-ek/nsh/defconfig index 18a8cc7fd0..1ac7fb3118 100644 --- a/configs/sam4e-ek/nsh/defconfig +++ b/configs/sam4e-ek/nsh/defconfig @@ -517,6 +517,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -840,15 +849,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/sam4e-ek/nxwm/defconfig b/configs/sam4e-ek/nxwm/defconfig index 6280d4b140..3ab09117e1 100644 --- a/configs/sam4e-ek/nxwm/defconfig +++ b/configs/sam4e-ek/nxwm/defconfig @@ -527,6 +527,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -899,14 +907,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/sam4e-ek/usbnsh/defconfig b/configs/sam4e-ek/usbnsh/defconfig index 197e6519a4..eebe76056b 100644 --- a/configs/sam4e-ek/usbnsh/defconfig +++ b/configs/sam4e-ek/usbnsh/defconfig @@ -523,6 +523,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -884,14 +892,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/sama5d3-xplained/bridge/defconfig b/configs/sama5d3-xplained/bridge/defconfig index ab2ee2b39d..01e56ae986 100644 --- a/configs/sama5d3-xplained/bridge/defconfig +++ b/configs/sama5d3-xplained/bridge/defconfig @@ -544,6 +544,11 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +# CONFIG_DRIVERS_IOB is not set # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -796,11 +801,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -# CONFIG_DRIVERS_IOB is not set - # # User-space networking stack API # diff --git a/configs/sama5d4-ek/bridge/defconfig b/configs/sama5d4-ek/bridge/defconfig index 9f463640df..ae4d3b8160 100644 --- a/configs/sama5d4-ek/bridge/defconfig +++ b/configs/sama5d4-ek/bridge/defconfig @@ -562,6 +562,11 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +# CONFIG_DRIVERS_IOB is not set # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -828,11 +833,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -# CONFIG_DRIVERS_IOB is not set - # # User-space networking stack API # diff --git a/configs/sama5d4-ek/ipv6/defconfig b/configs/sama5d4-ek/ipv6/defconfig index e0c7c271e0..06791816be 100644 --- a/configs/sama5d4-ek/ipv6/defconfig +++ b/configs/sama5d4-ek/ipv6/defconfig @@ -663,6 +663,15 @@ CONFIG_DEV_RANDOM=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1017,15 +1026,6 @@ CONFIG_ICMPv6_NEIGHBOR_DELAYMSEC=20 # ARP Configuration # -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/sama5d4-ek/nsh/defconfig b/configs/sama5d4-ek/nsh/defconfig index e323ec55fa..4c72b5f9b9 100644 --- a/configs/sama5d4-ek/nsh/defconfig +++ b/configs/sama5d4-ek/nsh/defconfig @@ -663,6 +663,15 @@ CONFIG_DEV_RANDOM=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1020,15 +1029,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/sama5d4-ek/nxwm/defconfig b/configs/sama5d4-ek/nxwm/defconfig index 81b25c7dd1..17907ad732 100644 --- a/configs/sama5d4-ek/nxwm/defconfig +++ b/configs/sama5d4-ek/nxwm/defconfig @@ -637,6 +637,15 @@ CONFIG_DEV_RANDOM=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -987,15 +996,6 @@ CONFIG_NET_ARP_MAXAGE=120 CONFIG_NET_ARP_IPIN=y # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/same70-xplained/netnsh/defconfig b/configs/same70-xplained/netnsh/defconfig index db58645eab..2b3cca401d 100644 --- a/configs/same70-xplained/netnsh/defconfig +++ b/configs/same70-xplained/netnsh/defconfig @@ -536,6 +536,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -875,15 +884,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/samv71-xult/netnsh/defconfig b/configs/samv71-xult/netnsh/defconfig index 06ea511773..ca281528ad 100644 --- a/configs/samv71-xult/netnsh/defconfig +++ b/configs/samv71-xult/netnsh/defconfig @@ -539,6 +539,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -878,15 +887,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/samv71-xult/vnc/defconfig b/configs/samv71-xult/vnc/defconfig index f5afccc5f9..a413da950f 100644 --- a/configs/samv71-xult/vnc/defconfig +++ b/configs/samv71-xult/vnc/defconfig @@ -538,6 +538,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=72 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=32 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -875,15 +884,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=72 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=32 - # # User-space networking stack API # diff --git a/configs/samv71-xult/vnxwm/defconfig b/configs/samv71-xult/vnxwm/defconfig index 84584c52df..4632730355 100644 --- a/configs/samv71-xult/vnxwm/defconfig +++ b/configs/samv71-xult/vnxwm/defconfig @@ -541,6 +541,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=72 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=32 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -878,15 +887,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=72 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=32 - # # User-space networking stack API # diff --git a/configs/shenzhou/nsh/defconfig b/configs/shenzhou/nsh/defconfig index e163798cf0..6e20d65f44 100644 --- a/configs/shenzhou/nsh/defconfig +++ b/configs/shenzhou/nsh/defconfig @@ -747,6 +747,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1038,14 +1046,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/shenzhou/nxwm/defconfig b/configs/shenzhou/nxwm/defconfig index dc29c952d3..2370d5377a 100644 --- a/configs/shenzhou/nxwm/defconfig +++ b/configs/shenzhou/nxwm/defconfig @@ -771,6 +771,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1098,14 +1106,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/shenzhou/thttpd/defconfig b/configs/shenzhou/thttpd/defconfig index 8abca6cb9a..ce40c66cca 100644 --- a/configs/shenzhou/thttpd/defconfig +++ b/configs/shenzhou/thttpd/defconfig @@ -748,6 +748,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1068,14 +1076,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/sim/nettest/defconfig b/configs/sim/nettest/defconfig index 27be8a0ebc..c1e7c78898 100644 --- a/configs/sim/nettest/defconfig +++ b/configs/sim/nettest/defconfig @@ -279,6 +279,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -485,14 +493,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/sim/sixlowpan/defconfig b/configs/sim/sixlowpan/defconfig index 5065856d47..5c64eb13e6 100644 --- a/configs/sim/sixlowpan/defconfig +++ b/configs/sim/sixlowpan/defconfig @@ -294,6 +294,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -604,15 +613,6 @@ CONFIG_NET_UDP_READAHEAD=y # ARP Configuration # -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/sim/udgram/defconfig b/configs/sim/udgram/defconfig index 352667b42b..8586c0b34d 100644 --- a/configs/sim/udgram/defconfig +++ b/configs/sim/udgram/defconfig @@ -288,6 +288,11 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +# CONFIG_DRIVERS_IOB is not set # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -476,11 +481,6 @@ CONFIG_NET_LOCAL_DGRAM=y # ARP Configuration # -# -# Network I/O Buffer Support -# -# CONFIG_DRIVERS_IOB is not set - # # User-space networking stack API # diff --git a/configs/sim/ustream/defconfig b/configs/sim/ustream/defconfig index 6b0726a89d..034f8b83c1 100644 --- a/configs/sim/ustream/defconfig +++ b/configs/sim/ustream/defconfig @@ -288,6 +288,11 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +# CONFIG_DRIVERS_IOB is not set # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -476,11 +481,6 @@ CONFIG_NET_LOCAL_STREAM=y # ARP Configuration # -# -# Network I/O Buffer Support -# -# CONFIG_DRIVERS_IOB is not set - # # User-space networking stack API # diff --git a/configs/stm3220g-eval/dhcpd/defconfig b/configs/stm3220g-eval/dhcpd/defconfig index ff770e02cb..c46030d14b 100644 --- a/configs/stm3220g-eval/dhcpd/defconfig +++ b/configs/stm3220g-eval/dhcpd/defconfig @@ -742,6 +742,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=8 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -995,14 +1003,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=8 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3220g-eval/nettest/defconfig b/configs/stm3220g-eval/nettest/defconfig index 49adf7c8d8..f69886646f 100644 --- a/configs/stm3220g-eval/nettest/defconfig +++ b/configs/stm3220g-eval/nettest/defconfig @@ -742,6 +742,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1000,14 +1008,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3220g-eval/nsh/defconfig b/configs/stm3220g-eval/nsh/defconfig index 61cc41fe2c..253c075c8d 100644 --- a/configs/stm3220g-eval/nsh/defconfig +++ b/configs/stm3220g-eval/nsh/defconfig @@ -767,6 +767,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1080,14 +1088,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3220g-eval/nsh2/defconfig b/configs/stm3220g-eval/nsh2/defconfig index 428488c43e..c437849e01 100644 --- a/configs/stm3220g-eval/nsh2/defconfig +++ b/configs/stm3220g-eval/nsh2/defconfig @@ -768,6 +768,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1076,14 +1084,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3220g-eval/nxwm/defconfig b/configs/stm3220g-eval/nxwm/defconfig index 9962bb6201..55c3649cb2 100644 --- a/configs/stm3220g-eval/nxwm/defconfig +++ b/configs/stm3220g-eval/nxwm/defconfig @@ -788,6 +788,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1124,14 +1132,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3220g-eval/telnetd/defconfig b/configs/stm3220g-eval/telnetd/defconfig index 2adcd3c46b..5a842d7721 100644 --- a/configs/stm3220g-eval/telnetd/defconfig +++ b/configs/stm3220g-eval/telnetd/defconfig @@ -742,6 +742,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1002,14 +1010,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3240g-eval/dhcpd/defconfig b/configs/stm3240g-eval/dhcpd/defconfig index efe681e3c4..e972d6303c 100644 --- a/configs/stm3240g-eval/dhcpd/defconfig +++ b/configs/stm3240g-eval/dhcpd/defconfig @@ -746,6 +746,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=8 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -999,14 +1007,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=8 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3240g-eval/discover/defconfig b/configs/stm3240g-eval/discover/defconfig index 59263438d9..e104292ed2 100644 --- a/configs/stm3240g-eval/discover/defconfig +++ b/configs/stm3240g-eval/discover/defconfig @@ -765,6 +765,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1035,14 +1043,6 @@ CONFIG_NET_ARP_MAXAGE=120 CONFIG_NET_ARP_IPIN=y # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3240g-eval/nettest/defconfig b/configs/stm3240g-eval/nettest/defconfig index 336084eda6..ac3a56be38 100644 --- a/configs/stm3240g-eval/nettest/defconfig +++ b/configs/stm3240g-eval/nettest/defconfig @@ -746,6 +746,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1004,14 +1012,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3240g-eval/nsh/defconfig b/configs/stm3240g-eval/nsh/defconfig index 719a3dbe42..4557ee9797 100644 --- a/configs/stm3240g-eval/nsh/defconfig +++ b/configs/stm3240g-eval/nsh/defconfig @@ -783,6 +783,14 @@ CONFIG_DEV_RANDOM=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1059,14 +1067,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3240g-eval/nsh2/defconfig b/configs/stm3240g-eval/nsh2/defconfig index dc73b09c20..fc1ab20840 100644 --- a/configs/stm3240g-eval/nsh2/defconfig +++ b/configs/stm3240g-eval/nsh2/defconfig @@ -772,6 +772,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1080,14 +1088,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3240g-eval/nxterm/defconfig b/configs/stm3240g-eval/nxterm/defconfig index fefe9b52bb..77847443b9 100644 --- a/configs/stm3240g-eval/nxterm/defconfig +++ b/configs/stm3240g-eval/nxterm/defconfig @@ -791,6 +791,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1098,14 +1106,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3240g-eval/nxwm/defconfig b/configs/stm3240g-eval/nxwm/defconfig index 5dd1c02f83..5e9f7a1306 100644 --- a/configs/stm3240g-eval/nxwm/defconfig +++ b/configs/stm3240g-eval/nxwm/defconfig @@ -792,6 +792,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1120,14 +1128,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3240g-eval/telnetd/defconfig b/configs/stm3240g-eval/telnetd/defconfig index dc565ae021..742c3f6e6e 100644 --- a/configs/stm3240g-eval/telnetd/defconfig +++ b/configs/stm3240g-eval/telnetd/defconfig @@ -746,6 +746,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1006,14 +1014,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3240g-eval/webserver/defconfig b/configs/stm3240g-eval/webserver/defconfig index d4772a437c..3dc8fbb926 100644 --- a/configs/stm3240g-eval/webserver/defconfig +++ b/configs/stm3240g-eval/webserver/defconfig @@ -771,6 +771,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1078,14 +1086,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm3240g-eval/xmlrpc/defconfig b/configs/stm3240g-eval/xmlrpc/defconfig index 4e3aa3b290..90bd6a6ee4 100644 --- a/configs/stm3240g-eval/xmlrpc/defconfig +++ b/configs/stm3240g-eval/xmlrpc/defconfig @@ -760,6 +760,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1031,14 +1039,6 @@ CONFIG_NET_ARP_MAXAGE=120 CONFIG_NET_ARP_IPIN=y # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm32butterfly2/nshnet/defconfig b/configs/stm32butterfly2/nshnet/defconfig index e1e4e1529e..fb61f3a9f6 100644 --- a/configs/stm32butterfly2/nshnet/defconfig +++ b/configs/stm32butterfly2/nshnet/defconfig @@ -743,6 +743,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set CONFIG_RAMDISK=y @@ -1075,14 +1083,6 @@ CONFIG_NET_ARP_MAXAGE=120 CONFIG_NET_ARP_IPIN=y # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/stm32f4discovery/ipv6/defconfig b/configs/stm32f4discovery/ipv6/defconfig index 5b8900d674..25d5886bbd 100644 --- a/configs/stm32f4discovery/ipv6/defconfig +++ b/configs/stm32f4discovery/ipv6/defconfig @@ -791,6 +791,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1080,15 +1089,6 @@ CONFIG_ICMPv6_NEIGHBOR_DELAYMSEC=20 # ARP Configuration # -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/stm32f4discovery/netnsh/defconfig b/configs/stm32f4discovery/netnsh/defconfig index 5eec4b26b6..f11c99eb6a 100644 --- a/configs/stm32f4discovery/netnsh/defconfig +++ b/configs/stm32f4discovery/netnsh/defconfig @@ -791,6 +791,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1083,15 +1092,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/tm4c1294-launchpad/ipv6/defconfig b/configs/tm4c1294-launchpad/ipv6/defconfig index 87e46300c2..e77c8b7e32 100644 --- a/configs/tm4c1294-launchpad/ipv6/defconfig +++ b/configs/tm4c1294-launchpad/ipv6/defconfig @@ -490,6 +490,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -740,15 +749,6 @@ CONFIG_NET_ICMPv6_PING=y # ARP Configuration # -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/tm4c1294-launchpad/nsh/defconfig b/configs/tm4c1294-launchpad/nsh/defconfig index 2ef2aece70..7ccb18b26c 100644 --- a/configs/tm4c1294-launchpad/nsh/defconfig +++ b/configs/tm4c1294-launchpad/nsh/defconfig @@ -490,6 +490,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -745,15 +754,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/twr-k64f120m/netnsh/defconfig b/configs/twr-k64f120m/netnsh/defconfig index 7a3cbb274f..1bd65b87c2 100644 --- a/configs/twr-k64f120m/netnsh/defconfig +++ b/configs/twr-k64f120m/netnsh/defconfig @@ -505,6 +505,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=36 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -785,15 +794,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=36 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/u-blox-c027/nsh/defconfig b/configs/u-blox-c027/nsh/defconfig index 7333497362..da3f3a030c 100644 --- a/configs/u-blox-c027/nsh/defconfig +++ b/configs/u-blox-c027/nsh/defconfig @@ -457,6 +457,15 @@ CONFIG_DEV_ZERO=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -786,15 +795,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/viewtool-stm32f107/netnsh/defconfig b/configs/viewtool-stm32f107/netnsh/defconfig index 76a1c45cbc..4b16b79f03 100644 --- a/configs/viewtool-stm32f107/netnsh/defconfig +++ b/configs/viewtool-stm32f107/netnsh/defconfig @@ -739,6 +739,15 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 +CONFIG_IOB_THROTTLE=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -1008,15 +1017,6 @@ CONFIG_NET_ARP_SEND=y CONFIG_ARP_SEND_MAXTRIES=5 CONFIG_ARP_SEND_DELAYMSEC=20 -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 -CONFIG_IOB_THROTTLE=8 - # # User-space networking stack API # diff --git a/configs/zkit-arm-1769/hello/defconfig b/configs/zkit-arm-1769/hello/defconfig index 8566f9cade..b8e92733f7 100644 --- a/configs/zkit-arm-1769/hello/defconfig +++ b/configs/zkit-arm-1769/hello/defconfig @@ -427,6 +427,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -685,14 +693,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/zkit-arm-1769/nsh/defconfig b/configs/zkit-arm-1769/nsh/defconfig index 283403c164..7d896929d8 100644 --- a/configs/zkit-arm-1769/nsh/defconfig +++ b/configs/zkit-arm-1769/nsh/defconfig @@ -450,6 +450,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -735,14 +743,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/zkit-arm-1769/nxhello/defconfig b/configs/zkit-arm-1769/nxhello/defconfig index 20de0ea354..b0c578902c 100644 --- a/configs/zkit-arm-1769/nxhello/defconfig +++ b/configs/zkit-arm-1769/nxhello/defconfig @@ -450,6 +450,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -773,14 +781,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/configs/zkit-arm-1769/thttpd/defconfig b/configs/zkit-arm-1769/thttpd/defconfig index 2691aaccdb..2846f29834 100644 --- a/configs/zkit-arm-1769/thttpd/defconfig +++ b/configs/zkit-arm-1769/thttpd/defconfig @@ -427,6 +427,14 @@ CONFIG_DEV_NULL=y # # Buffering # + +# +# Common I/O Buffer Support +# +CONFIG_DRIVERS_IOB=y +CONFIG_IOB_NBUFFERS=24 +CONFIG_IOB_BUFSIZE=196 +CONFIG_IOB_NCHAINS=8 # CONFIG_DRVR_WRITEBUFFER is not set # CONFIG_DRVR_READAHEAD is not set # CONFIG_RAMDISK is not set @@ -688,14 +696,6 @@ CONFIG_NET_ARP_MAXAGE=120 # CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_SEND is not set -# -# Network I/O Buffer Support -# -CONFIG_DRIVERS_IOB=y -CONFIG_IOB_NBUFFERS=24 -CONFIG_IOB_BUFSIZE=196 -CONFIG_IOB_NCHAINS=8 - # # User-space networking stack API # diff --git a/drivers/Kconfig b/drivers/Kconfig index d7bc265374..fa200e17d4 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -98,6 +98,8 @@ source drivers/loop/Kconfig menu "Buffering" +source "drivers/iob/Kconfig" + config DRVR_WRITEBUFFER bool "Enable write buffer support" default n diff --git a/drivers/Makefile b/drivers/Makefile index 5946cc123a..1de5f4d133 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -54,6 +54,7 @@ include audio$(DELIM)Make.defs include bch$(DELIM)Make.defs include i2c$(DELIM)Make.defs include input$(DELIM)Make.defs +include iob$(DELIM)Make.defs include ioexpander$(DELIM)Make.defs include lcd$(DELIM)Make.defs include leds$(DELIM)Make.defs diff --git a/drivers/README.txt b/drivers/README.txt index f9f23af06f..ad4e25f642 100644 --- a/drivers/README.txt +++ b/drivers/README.txt @@ -74,6 +74,10 @@ eeprom/ interface but instead use the simple character interface provided by the EEPROM drivers. +iob/ + Common driver I/O buffer support. Used primarily by networking and + network-related drivers but available for any usage. + i2c/ I2C drivers and support logic. See include/nuttx/i2c/i2c_master.h diff --git a/net/iob/Kconfig b/drivers/iob/Kconfig similarity index 79% rename from net/iob/Kconfig rename to drivers/iob/Kconfig index 459e144ebb..e5368681d5 100644 --- a/net/iob/Kconfig +++ b/drivers/iob/Kconfig @@ -3,19 +3,19 @@ # see the file kconfig-language.txt in the NuttX tools repository. # -menu "Network I/O Buffer Support" +menu "Common I/O Buffer Support" config DRIVERS_IOB - bool "Enable generic network I/O buffer support" + bool "Enable generic I/O buffer support" default n ---help--- - This setting will build the networking I/O buffer (IOB) support + This setting will build the common I/O buffer (IOB) support library. if DRIVERS_IOB config IOB_NBUFFERS - int "Number of pre-allocated network I/O buffers" + int "Number of pre-allocated I/O buffers" default 24 if (NET_TCP_WRITE_BUFFERS && !NET_TCP_READAHEAD) || (!NET_TCP_WRITE_BUFFERS && NET_TCP_READAHEAD) default 36 if NET_TCP_WRITE_BUFFERS && NET_TCP_READAHEAD default 8 if !NET_TCP_WRITE_BUFFERS && !NET_TCP_READAHEAD @@ -25,7 +25,7 @@ config IOB_NBUFFERS buffers available for packet data. config IOB_BUFSIZE - int "Payload size of one network I/O buffer" + int "Payload size of one I/O buffer" default 196 ---help--- Each packet is represented by a series of small I/O buffers in a @@ -65,11 +65,10 @@ config IOB_DEBUG default n depends on DEBUG_FEATURES ---help--- - This option will force debug output from I/O buffer logic, - even without network debug output. This is not normally something - that would want to do but is convenient if you are debugging the - I/O buffer logic and do not want to get overloaded with other - network-related debug output. + This option will force debug output from I/O buffer logic. This + is not normally something that would want to do but is convenient + if you are debugging the I/O buffer logic and do not want to get + overloaded with other un-related debug output. endif # DRIVERS_IOB -endmenu # Network I/O buffer support +endmenu # Common I/O buffer support diff --git a/net/iob/Make.defs b/drivers/iob/Make.defs similarity index 77% rename from net/iob/Make.defs rename to drivers/iob/Make.defs index ec55eca204..ba74e8e578 100644 --- a/net/iob/Make.defs +++ b/drivers/iob/Make.defs @@ -1,7 +1,7 @@ ############################################################################ -# net/iob/Make.defs +# drivers/iob/Make.defs # -# Copyright (C) 2014 Gregory Nutt. All rights reserved. +# Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. # Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without @@ -37,19 +37,20 @@ ifeq ($(CONFIG_DRIVERS_IOB),y) # Include IOB source files -NET_CSRCS += iob_add_queue.c iob_alloc.c iob_alloc_qentry.c iob_clone.c -NET_CSRCS += iob_concat.c iob_copyin.c iob_copyout.c iob_contig.c iob_free.c -NET_CSRCS += iob_free_chain.c iob_free_qentry.c iob_free_queue.c -NET_CSRCS += iob_initialize.c iob_pack.c iob_peek_queue.c iob_remove_queue.c -NET_CSRCS += iob_trimhead.c iob_trimhead_queue.c iob_trimtail.c +CSRCS += iob_add_queue.c iob_alloc.c iob_alloc_qentry.c iob_clone.c +CSRCS += iob_concat.c iob_copyin.c iob_copyout.c iob_contig.c iob_free.c +CSRCS += iob_free_chain.c iob_free_qentry.c iob_free_queue.c +CSRCS += iob_initialize.c iob_pack.c iob_peek_queue.c iob_remove_queue.c +CSRCS += iob_trimhead.c iob_trimhead_queue.c iob_trimtail.c ifeq ($(CONFIG_DEBUG_FEATURES),y) -NET_CSRCS += iob_dump.c + CSRCS += iob_dump.c endif # Include iob build support DEPPATH += --dep-path iob VPATH += :iob +CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)iob} endif diff --git a/net/iob/iob.h b/drivers/iob/iob.h similarity index 82% rename from net/iob/iob.h rename to drivers/iob/iob.h index d949edecf0..30f2310272 100644 --- a/net/iob/iob.h +++ b/drivers/iob/iob.h @@ -1,7 +1,7 @@ /**************************************************************************** - * net/iob/iob.h + * drivers/iob/iob.h * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -33,8 +33,8 @@ * ****************************************************************************/ -#ifndef __NET_IOB_IOB_H -#define __NET_IOB_IOB_H 1 +#ifndef __DRIVERS_IOB_IOB_H +#define __DRIVERS_IOB_IOB_H 1 /**************************************************************************** * Included Files @@ -43,11 +43,46 @@ #include #include +#include #include #ifdef CONFIG_DRIVERS_IOB +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) +#ifdef CONFIG_CPP_HAVE_VARARGS + +# define ioberr(format, ...) _err(format, ##__VA_ARGS__) +# define iobwarn(format, ...) _warn(format, ##__VA_ARGS__) +# define iobinfo(format, ...) _info(format, ##__VA_ARGS__) + +#else + +# define ioberr _err +# define iobwarn _warn +# define iobinfo _info + +#endif +#else +#ifdef CONFIG_CPP_HAVE_VARARGS + +# define ioberr(format, ...) +# define iobwarn(format, ...) +# define iobinfo(format, ...) + +#else + +# define ioberr (void) +# define iobwarn (void) +# define iobinfo (void) + +#endif +#endif /* CONFIG_DEBUG_FEATURES && CONFIG_IOB_DEBUG */ + /**************************************************************************** * Public Data ****************************************************************************/ @@ -100,17 +135,6 @@ FAR struct iob_qentry_s *iob_alloc_qentry(void); FAR struct iob_qentry_s *iob_tryalloc_qentry(void); -/**************************************************************************** - * Name: iob_tryalloc - * - * Description: - * Try to allocate an I/O buffer by taking the buffer at the head of the - * free list without waiting for a buffer to become free. - * - ****************************************************************************/ - -FAR struct iob_s *iob_tryalloc(bool throttled); - /**************************************************************************** * Name: iob_free_qentry * @@ -123,4 +147,4 @@ FAR struct iob_s *iob_tryalloc(bool throttled); FAR struct iob_qentry_s *iob_free_qentry(FAR struct iob_qentry_s *iobq); #endif /* CONFIG_DRIVERS_IOB */ -#endif /* __NET_IOB_IOB_H */ +#endif /* __DRIVERS_IOB_IOB_H */ diff --git a/net/iob/iob_add_queue.c b/drivers/iob/iob_add_queue.c similarity index 93% rename from net/iob/iob_add_queue.c rename to drivers/iob/iob_add_queue.c index 51de43aaae..a2f3376208 100644 --- a/net/iob/iob_add_queue.c +++ b/drivers/iob/iob_add_queue.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_add_queue.c + * drivers/iob/iob_add_queue.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include #include @@ -125,7 +118,7 @@ int iob_add_queue(FAR struct iob_s *iob, FAR struct iob_queue_s *iobq) qentry = iob_alloc_qentry(); if (!qentry) { - nerr("ERROR: Failed to allocate a container\n"); + ioberr("ERROR: Failed to allocate a container\n"); return -ENOMEM; } @@ -150,7 +143,7 @@ int iob_tryadd_queue(FAR struct iob_s *iob, FAR struct iob_queue_s *iobq) qentry = iob_tryalloc_qentry(); if (!qentry) { - nerr("ERROR: Failed to allocate a container\n"); + ioberr("ERROR: Failed to allocate a container\n"); return -ENOMEM; } diff --git a/net/iob/iob_alloc.c b/drivers/iob/iob_alloc.c similarity index 97% rename from net/iob/iob_alloc.c rename to drivers/iob/iob_alloc.c index f5210994cd..9fc938d7ed 100644 --- a/net/iob/iob_alloc.c +++ b/drivers/iob/iob_alloc.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_alloc.c + * drivers/iob/iob_alloc.c * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include #include diff --git a/net/iob/iob_alloc_qentry.c b/drivers/iob/iob_alloc_qentry.c similarity index 97% rename from net/iob/iob_alloc_qentry.c rename to drivers/iob/iob_alloc_qentry.c index 7b3fda3ee9..147f1f8328 100644 --- a/net/iob/iob_alloc_qentry.c +++ b/drivers/iob/iob_alloc_qentry.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_alloc_qentry.c + * drivers/iob/iob_alloc_qentry.c * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include #include diff --git a/net/iob/iob_clone.c b/drivers/iob/iob_clone.c similarity index 94% rename from net/iob/iob_clone.c rename to drivers/iob/iob_clone.c index 15a5b81a87..bbd2450280 100644 --- a/net/iob/iob_clone.c +++ b/drivers/iob/iob_clone.c @@ -1,7 +1,7 @@ /**************************************************************************** - * net/iob1/iob_copy.c + * drivers/iob/iob_copy.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include #include @@ -168,7 +161,7 @@ int iob_clone(FAR struct iob_s *iob1, FAR struct iob_s *iob2, bool throttled) next = iob_alloc(throttled); if (!next) { - nerr("ERROR: Failed to allocate an I/O buffer/n"); + ioberr("ERROR: Failed to allocate an I/O buffer/n"); return -ENOMEM; } diff --git a/net/iob/iob_concat.c b/drivers/iob/iob_concat.c similarity index 93% rename from net/iob/iob_concat.c rename to drivers/iob/iob_concat.c index 10a74b30b5..8c9325ee53 100644 --- a/net/iob/iob_concat.c +++ b/drivers/iob/iob_concat.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_concat.c + * drivers/iob/iob_concat.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include diff --git a/net/iob/iob_contig.c b/drivers/iob/iob_contig.c similarity index 94% rename from net/iob/iob_contig.c rename to drivers/iob/iob_contig.c index aabbc91352..af2bc40db7 100644 --- a/net/iob/iob_contig.c +++ b/drivers/iob/iob_contig.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_contig.c + * drivers/iob/iob_contig.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include #include @@ -161,7 +154,7 @@ int iob_contig(FAR struct iob_s *iob, unsigned int len) else { - nerr("ERROR: pktlen=%u < requested len=%u\n", iob->io_pktlen, len); + ioberr("ERROR: pktlen=%u < requested len=%u\n", iob->io_pktlen, len); return -ENOSPC; } } diff --git a/net/iob/iob_copyin.c b/drivers/iob/iob_copyin.c similarity index 92% rename from net/iob/iob_copyin.c rename to drivers/iob/iob_copyin.c index db2f167669..8a5732cb94 100644 --- a/net/iob/iob_copyin.c +++ b/drivers/iob/iob_copyin.c @@ -1,7 +1,7 @@ /**************************************************************************** - * net/iob/iob_copyin.c + * drivers/iob/iob_copyin.c * - * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2014, 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include #include @@ -97,15 +90,15 @@ static int iob_copyin_internal(FAR struct iob_s *iob, FAR const uint8_t *src, unsigned int avail; unsigned int total = len; - ninfo("iob=%p len=%u offset=%u\n", iob, len, offset); + iobinfo("iob=%p len=%u offset=%u\n", iob, len, offset); DEBUGASSERT(iob && src); /* The offset must applied to data that is already in the I/O buffer chain */ if (offset > iob->io_pktlen) { - nerr("ERROR: offset is past the end of data: %u > %u\n", - offset, iob->io_pktlen); + ioberr("ERROR: offset is past the end of data: %u > %u\n", + offset, iob->io_pktlen); return -ESPIPE; } @@ -130,7 +123,7 @@ static int iob_copyin_internal(FAR struct iob_s *iob, FAR const uint8_t *src, dest = &iob->io_data[iob->io_offset + offset]; avail = iob->io_len - offset; - ninfo("iob=%p avail=%u len=%u next=%p\n", iob, avail, len, next); + iobinfo("iob=%p avail=%u len=%u next=%p\n", iob, avail, len, next); /* Will the rest of the copy fit into this buffer, overwriting * existing data. @@ -187,8 +180,8 @@ static int iob_copyin_internal(FAR struct iob_s *iob, FAR const uint8_t *src, /* Copy from the user buffer to the I/O buffer. */ memcpy(dest, src, ncopy); - ninfo("iob=%p Copy %u bytes new len=%u\n", - iob, ncopy, iob->io_len); + iobinfo("iob=%p Copy %u bytes new len=%u\n", + iob, ncopy, iob->io_len); /* Adjust the total length of the copy and the destination address in * the user buffer. @@ -220,14 +213,14 @@ static int iob_copyin_internal(FAR struct iob_s *iob, FAR const uint8_t *src, if (next == NULL) { - nerr("ERROR: Failed to allocate I/O buffer\n"); + ioberr("ERROR: Failed to allocate I/O buffer\n"); return len; } /* Add the new, empty I/O buffer to the end of the buffer chain. */ iob->io_flink = next; - ninfo("iob=%p added to the chain\n", iob); + iobinfo("iob=%p added to the chain\n", iob); } iob = next; diff --git a/net/iob/iob_copyout.c b/drivers/iob/iob_copyout.c similarity index 95% rename from net/iob/iob_copyout.c rename to drivers/iob/iob_copyout.c index 9b6df5531d..4b8c4e243c 100644 --- a/net/iob/iob_copyout.c +++ b/drivers/iob/iob_copyout.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_copyout.c + * drivers/iob/iob_copyout.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include #include diff --git a/net/iob/iob_dump.c b/drivers/iob/iob_dump.c similarity index 97% rename from net/iob/iob_dump.c rename to drivers/iob/iob_dump.c index eea432d3c2..fce3f2f17e 100644 --- a/net/iob/iob_dump.c +++ b/drivers/iob/iob_dump.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_dump.c + * drivers/iob/iob_dump.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -83,8 +83,8 @@ void iob_dump(FAR const char *msg, FAR struct iob_s *iob, unsigned int len, if (offset > head->io_pktlen) { - nerr("ERROR: offset is past the end of data: %u > %u\n", - offset, head->io_pktlen); + ioberr("ERROR: offset is past the end of data: %u > %u\n", + offset, head->io_pktlen); return; } diff --git a/net/iob/iob_free.c b/drivers/iob/iob_free.c similarity index 89% rename from net/iob/iob_free.c rename to drivers/iob/iob_free.c index 26e3df0cff..d2a67d9758 100644 --- a/net/iob/iob_free.c +++ b/drivers/iob/iob_free.c @@ -1,7 +1,7 @@ /**************************************************************************** - * net/iob/iob_free.c + * drivers/iob/iob_free.c * - * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. + * Copyright (C) 2014, 2016-2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include #include @@ -74,8 +67,8 @@ FAR struct iob_s *iob_free(FAR struct iob_s *iob) FAR struct iob_s *next = iob->io_flink; irqstate_t flags; - ninfo("iob=%p io_pktlen=%u io_len=%u next=%p\n", - iob, iob->io_pktlen, iob->io_len, next); + iobinfo("iob=%p io_pktlen=%u io_len=%u next=%p\n", + iob, iob->io_pktlen, iob->io_len, next); /* Copy the data that only exists in the head of a I/O buffer chain into * the next entry. @@ -104,8 +97,8 @@ FAR struct iob_s *iob_free(FAR struct iob_s *iob) DEBUGASSERT(next->io_len == 0 && next->io_flink == NULL); } - ninfo("next=%p io_pktlen=%u io_len=%u\n", - next, next->io_pktlen, next->io_len); + iobinfo("next=%p io_pktlen=%u io_len=%u\n", + next, next->io_pktlen, next->io_len); } /* Free the I/O buffer by adding it to the head of the free list. We don't diff --git a/net/iob/iob_free_chain.c b/drivers/iob/iob_free_chain.c similarity index 93% rename from net/iob/iob_free_chain.c rename to drivers/iob/iob_free_chain.c index c309fbdafe..75c69a3f13 100644 --- a/net/iob/iob_free_chain.c +++ b/drivers/iob/iob_free_chain.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_free_chain.c + * drivers/iob/iob_free_chain.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include diff --git a/net/iob/iob_free_qentry.c b/drivers/iob/iob_free_qentry.c similarity index 94% rename from net/iob/iob_free_qentry.c rename to drivers/iob/iob_free_qentry.c index 636b835b87..402d4e76ac 100644 --- a/net/iob/iob_free_qentry.c +++ b/drivers/iob/iob_free_qentry.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_free_qentry.c + * drivers/iob/iob_free_qentry.c * * Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include diff --git a/net/iob/iob_free_queue.c b/drivers/iob/iob_free_queue.c similarity index 94% rename from net/iob/iob_free_queue.c rename to drivers/iob/iob_free_queue.c index e559c819b9..953182b5c6 100644 --- a/net/iob/iob_free_queue.c +++ b/drivers/iob/iob_free_queue.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_free_queue.c + * drivers/iob/iob_free_queue.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include diff --git a/net/iob/iob_initialize.c b/drivers/iob/iob_initialize.c similarity index 95% rename from net/iob/iob_initialize.c rename to drivers/iob/iob_initialize.c index 03bb96b691..423f90898c 100644 --- a/net/iob/iob_initialize.c +++ b/drivers/iob/iob_initialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_initialize.c + * drivers/iob/iob_initialize.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include diff --git a/net/iob/iob_pack.c b/drivers/iob/iob_pack.c similarity index 95% rename from net/iob/iob_pack.c rename to drivers/iob/iob_pack.c index 7dc997dc2a..0a2b0f66c5 100644 --- a/net/iob/iob_pack.c +++ b/drivers/iob/iob_pack.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_pack.c + * drivers/iob/iob_pack.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include diff --git a/net/iob/iob_peek_queue.c b/drivers/iob/iob_peek_queue.c similarity index 94% rename from net/iob/iob_peek_queue.c rename to drivers/iob/iob_peek_queue.c index 64c9531184..7bc81bfa12 100644 --- a/net/iob/iob_peek_queue.c +++ b/drivers/iob/iob_peek_queue.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_peek_queue.c + * drivers/iob/iob_peek_queue.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include diff --git a/net/iob/iob_remove_queue.c b/drivers/iob/iob_remove_queue.c similarity index 94% rename from net/iob/iob_remove_queue.c rename to drivers/iob/iob_remove_queue.c index ab02b67a0c..4bfbca3056 100644 --- a/net/iob/iob_remove_queue.c +++ b/drivers/iob/iob_remove_queue.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_remove_queue.c + * drivers/iob/iob_remove_queue.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include diff --git a/net/iob/iob_test.c b/drivers/iob/iob_test.c similarity index 99% rename from net/iob/iob_test.c rename to drivers/iob/iob_test.c index 0e13fab793..ee6b90d886 100644 --- a/net/iob/iob_test.c +++ b/drivers/iob/iob_test.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_test.c + * drivers/iob/iob_test.c * Unit test driver. This is of historical interest only since it requires * and custom build setup and modifications to the iob source and header * files. diff --git a/net/iob/iob_trimhead.c b/drivers/iob/iob_trimhead.c similarity index 90% rename from net/iob/iob_trimhead.c rename to drivers/iob/iob_trimhead.c index a50ea9283b..938c040711 100644 --- a/net/iob/iob_trimhead.c +++ b/drivers/iob/iob_trimhead.c @@ -1,7 +1,7 @@ /**************************************************************************** - * net/iob/iob_trimhead.c + * drivers/iob/iob_trimhead.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include @@ -78,7 +71,7 @@ FAR struct iob_s *iob_trimhead(FAR struct iob_s *iob, unsigned int trimlen) { uint16_t pktlen; - ninfo("iob=%p trimlen=%d\n", iob, trimlen); + iobinfo("iob=%p trimlen=%d\n", iob, trimlen); if (iob && trimlen > 0) { @@ -89,8 +82,8 @@ FAR struct iob_s *iob_trimhead(FAR struct iob_s *iob, unsigned int trimlen) { /* Do we trim this entire I/O buffer away? */ - ninfo("iob=%p io_len=%d pktlen=%d trimlen=%d\n", - iob, iob->io_len, pktlen, trimlen); + iobinfo("iob=%p io_len=%d pktlen=%d trimlen=%d\n", + iob, iob->io_len, pktlen, trimlen); if (iob->io_len <= trimlen) { @@ -120,7 +113,7 @@ FAR struct iob_s *iob_trimhead(FAR struct iob_s *iob, unsigned int trimlen) /* Free this entry and set the next I/O buffer as the head */ - ninfo("iob=%p: Freeing\n", iob); + iobinfo("iob=%p: Freeing\n", iob); (void)iob_free(iob); iob = next; } diff --git a/net/iob/iob_trimhead_queue.c b/drivers/iob/iob_trimhead_queue.c similarity index 94% rename from net/iob/iob_trimhead_queue.c rename to drivers/iob/iob_trimhead_queue.c index 57a1f9637e..7ba393366f 100644 --- a/net/iob/iob_trimhead_queue.c +++ b/drivers/iob/iob_trimhead_queue.c @@ -1,5 +1,5 @@ /**************************************************************************** - * net/iob/iob_trimhead_queue.c + * drivers/iob/iob_trimhead_queue.c * * Copyright (C) 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include diff --git a/net/iob/iob_trimtail.c b/drivers/iob/iob_trimtail.c similarity index 91% rename from net/iob/iob_trimtail.c rename to drivers/iob/iob_trimtail.c index 2d297d8547..b876de1552 100644 --- a/net/iob/iob_trimtail.c +++ b/drivers/iob/iob_trimtail.c @@ -1,7 +1,7 @@ /**************************************************************************** - * net/iob/iob_trimtail.c + * drivers/iob/iob_trimtail.c * - * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -39,13 +39,6 @@ #include -#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_IOB_DEBUG) -/* Force debug output (from this file only) */ - -# undef CONFIG_DEBUG_NET -# define CONFIG_DEBUG_NET 1 -#endif - #include #include @@ -72,7 +65,7 @@ FAR struct iob_s *iob_trimtail(FAR struct iob_s *iob, unsigned int trimlen) FAR struct iob_s *last; int len; - ninfo("iob=%p pktlen=%d trimlen=%d\n", iob, iob->io_pktlen, trimlen); + iobinfo("iob=%p pktlen=%d trimlen=%d\n", iob, iob->io_pktlen, trimlen); if (iob && trimlen > 0) { @@ -101,7 +94,7 @@ FAR struct iob_s *iob_trimtail(FAR struct iob_s *iob, unsigned int trimlen) * I/O buffer away? */ - ninfo("iob=%p len=%d vs %d\n", last, last->io_len, len); + iobinfo("iob=%p len=%d vs %d\n", last, last->io_len, len); if (last->io_len <= len) { /* Yes.. Consume the entire buffer */ diff --git a/include/nuttx/drivers/iob.h b/include/nuttx/drivers/iob.h index 52f848db30..d6ce3c3025 100644 --- a/include/nuttx/drivers/iob.h +++ b/include/nuttx/drivers/iob.h @@ -176,6 +176,17 @@ void iob_initialize(void); FAR struct iob_s *iob_alloc(bool throttled); +/**************************************************************************** + * Name: iob_tryalloc + * + * Description: + * Try to allocate an I/O buffer by taking the buffer at the head of the + * free list without waiting for a buffer to become free. + * + ****************************************************************************/ + +FAR struct iob_s *iob_tryalloc(bool throttled); + /**************************************************************************** * Name: iob_free * diff --git a/net/Kconfig b/net/Kconfig index da5eab15d2..313f7a05f8 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -295,7 +295,6 @@ source "net/icmpv6/Kconfig" source "net/igmp/Kconfig" source "net/arp/Kconfig" source "net/loopback/Kconfig" -source "net/iob/Kconfig" source "net/procfs/Kconfig" source "net/usrsock/Kconfig" source "net/utils/Kconfig" diff --git a/net/Makefile b/net/Makefile index cd6979a414..25105b0c22 100644 --- a/net/Makefile +++ b/net/Makefile @@ -57,7 +57,6 @@ DEPPATH = --dep-path . include socket/Make.defs include netdev/Make.defs -include iob/Make.defs include arp/Make.defs include icmp/Make.defs include icmpv6/Make.defs diff --git a/net/README.txt b/net/README.txt index e87a0889b5..beda522959 100644 --- a/net/README.txt +++ b/net/README.txt @@ -12,7 +12,6 @@ Directory Structure +- devif - Stack/device interface layer +- icmp - Internet Control Message Protocol (IPv4) +- icmpv6 - Internet Control Message Protocol (IPv6) - +- iob - I/O buffering logic +- local - Unix domain (local) sockets +- loopback - Local loopback +- neighbor - Neighbor Discovery Protocol (IPv6) @@ -43,4 +42,4 @@ Directory Structure +----------------------------------------------------------------+ +-----+ +----------------------------------------------------------------+ +--------------------------+ | Networking Hardware | | Hardware TCP/IP Stack | - +----------------------------------------------------------------+ +--------------------------+ \ No newline at end of file + +----------------------------------------------------------------+ +--------------------------+ diff --git a/net/net_initialize.c b/net/net_initialize.c index d792f77a83..c37a69c73a 100644 --- a/net/net_initialize.c +++ b/net/net_initialize.c @@ -42,7 +42,6 @@ #include -#include #include #include "socket/socket.h" @@ -109,12 +108,6 @@ void net_setup(void) #endif #endif /* CONFIG_NET_IPv6 */ -#ifdef CONFIG_DRIVERS_IOB - /* Initialize I/O buffering */ - - iob_initialize(); -#endif - /* Initialize the device interface layer */ devif_initialize(); diff --git a/net/tcp/tcp_callback.c b/net/tcp/tcp_callback.c index 2ed5476d4f..0feb41e68a 100644 --- a/net/tcp/tcp_callback.c +++ b/net/tcp/tcp_callback.c @@ -45,12 +45,12 @@ #include #include +#include #include #include #include #include "devif/devif.h" -#include "iob/iob.h" #include "tcp/tcp.h" /**************************************************************************** diff --git a/net/udp/udp_callback.c b/net/udp/udp_callback.c index 74c0527fae..52caaea543 100644 --- a/net/udp/udp_callback.c +++ b/net/udp/udp_callback.c @@ -50,7 +50,6 @@ #include #include "devif/devif.h" -#include "iob/iob.h" #include "udp/udp.h" /**************************************************************************** diff --git a/net/udp/udp_conn.c b/net/udp/udp_conn.c index 964846e91d..077a840566 100644 --- a/net/udp/udp_conn.c +++ b/net/udp/udp_conn.c @@ -62,7 +62,6 @@ #include "devif/devif.h" #include "netdev/netdev.h" -#include "iob/iob.h" #include "udp/udp.h" /****************************************************************************