summaryrefslogtreecommitdiffstats
path: root/include/usb
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-03-03 16:07:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-03-26 07:21:14 +0100
commit5195ff3294373197881be1545de4ff23995b9842 (patch)
tree069082a53608d6b2a51c53a6d4824bf261c8ee9d /include/usb
parent709961ab5d36ec15db98a04b90d68d9c3394255d (diff)
downloadbarebox-5195ff3294373197881be1545de4ff23995b9842.tar.gz
barebox-5195ff3294373197881be1545de4ff23995b9842.tar.xz
usb: net: Allocate tx buffer dynamically
It's cleaner to have a tx buffer per device and not one for all. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb')
-rw-r--r--include/usb/usbnet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb/usbnet.h b/include/usb/usbnet.h
index 3edf49413a..450db47b40 100644
--- a/include/usb/usbnet.h
+++ b/include/usb/usbnet.h
@@ -46,6 +46,7 @@ struct usbnet {
u32 hard_mtu; /* count any extra framing */
size_t rx_urb_size; /* size for rx urbs */
void *rx_buf;
+ void *tx_buf;
unsigned long flags;
# define EVENT_TX_HALT 0