diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-02 15:19:49 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-26 07:21:14 +0100 |
commit | 709961ab5d36ec15db98a04b90d68d9c3394255d (patch) | |
tree | b731cad2c966abde43603fb3f5e69b5927098396 /include/usb | |
parent | 32aeef4be60cfe5b96cda2d6ae88ae32ef015894 (diff) | |
download | barebox-709961ab5d36ec15db98a04b90d68d9c3394255d.tar.gz barebox-709961ab5d36ec15db98a04b90d68d9c3394255d.tar.xz |
usb: net: Allocate rx buffer dynamically
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb')
-rw-r--r-- | include/usb/usbnet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb/usbnet.h b/include/usb/usbnet.h index 386c2164bd..3edf49413a 100644 --- a/include/usb/usbnet.h +++ b/include/usb/usbnet.h @@ -45,6 +45,7 @@ struct usbnet { u32 xid; u32 hard_mtu; /* count any extra framing */ size_t rx_urb_size; /* size for rx urbs */ + void *rx_buf; unsigned long flags; # define EVENT_TX_HALT 0 |