Re: [PATCH 15/24] usb: net: Allocate rx buffer dynamically

2020-03-25 Thread Sascha Hauer
Hi Jules, On Wed, Mar 25, 2020 at 03:18:00PM +0100, Jules Maselbas wrote: > Hi Sascha, > > > + undev->rx_buf = dma_alloc(undev->rx_urb_size); > Looks like this buffer is never free, same for tx_buf. Right, thanks for noting. Fixed. Regards Sascha -- Pengutronix e.K.

Re: [PATCH 15/24] usb: net: Allocate rx buffer dynamically

2020-03-25 Thread Jules Maselbas
Hi Sascha, > + undev->rx_buf = dma_alloc(undev->rx_urb_size); Looks like this buffer is never free, same for tx_buf. Best regards, Jules ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH 15/24] usb: net: Allocate rx buffer dynamically

2020-03-25 Thread Sascha Hauer
Allocate an individual rx buffer per device in the size we need it instead of using one global buffer for all devices. Signed-off-by: Sascha Hauer --- drivers/net/usb/usbnet.c | 15 ++- include/usb/usbnet.h | 1 + 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/d