From mboxrd@z Thu Jan 1 00:00:00 1970 From: dh at synoia.com Date: Thu, 8 Feb 2018 14:41:10 -0800 Subject: [U-Boot] TCP & Overrrun In-Reply-To: <820972861.1357945.1518128144239@mail.yahoo.com> References: <20180207184012.409002c7@raspberrypi> <820972861.1357945.1518128144239@mail.yahoo.com> Message-ID: <20180208144014.03bac18b@raspberrypi> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On Thu, 8 Feb 2018 22:15:44 +0000 (UTC) Duncan Hare wrote: >  Duncan Hare > > 714 931 7952 > > > ----- Forwarded Message ----- > From: Joe Hershberger > To: Duncan Hare > Cc: u-boot ; Joe Hershberger > Sent: Thursday, February 8, 2018 11:40 AM > Subject: Re: [U-Boot] TCP & Overrrun > > Hi Duncan, > > On Wed, Feb 7, 2018 at 8:40 PM, Duncan Hare wrote: > > I'm gettin overrun on the raspberry pi. > > > > Which ethernet drived does it use? > > You didn't specify which one you are talking about, but here's how to > find out... > > Assuming rpi3, find the config first... > > configs/rpi_3_defconfig says: > CONFIG_DEFAULT_DEVICE_TREE="bcm2837-rpi-3-b" > arch/arm/dts/bcm2837-rpi-3-b.dts says: #include > "bcm283x-rpi-smsc9514.dtsi" arch/arm/dts/bcm283x-rpi-smsc9514.dtsi > says:                ethernet: usbether at 1 { > compatible = "usb424,ec00"; grep -rn ec00 drivers/ says: > drivers/usb/eth/smsc95xx.c > > Cheers, > -Joe > > > I need to determine if it > > uses CONFIG_SYS_RX_ETH_BUFFER" from net.h and the "net_rx_packets" > > buffer pool defined in net/net.c > > > > Thanks > > > > Duncan Hare > > _______________________________________________ > > U-Boot mailing list > > U-Boot at lists.denx.de > > https://lists.denx.de/listinfo/u-boot > Joe Thanks It's is more push down stack buffer management than circular. Small change to fix. No more starting at zero. I like buffer pools with a size of power of 2. Easy to make circular with an & of the power of 2-1 on the index. Duncan