diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2018-07-31 12:55:22 +0300 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2018-10-10 20:28:52 +0300 |
commit | dda5251037008b3563ab0aaf443eb7be3213887c (patch) | |
tree | 2fbeb36907a2a50866cf0d1669c163f3aa88c5e0 /drivers/usb/eth | |
parent | 2240d763e54028bfdd52e06b2b0cdba07e43f84f (diff) | |
download | u-boot-dda5251037008b3563ab0aaf443eb7be3213887c.tar.xz |
net.h: Include linux/if_ether.h to avoid duplication
There are plenty of existing drivers that have macros like ETH_ALEN
defined in their own source files. Now that we imported the kernel's
if_ether.h to U-Boot we can reduce some duplication.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/usb/eth')
-rw-r--r-- | drivers/usb/eth/lan7x.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/eth/lan7x.h b/drivers/usb/eth/lan7x.h index d1b1047935..7af610be37 100644 --- a/drivers/usb/eth/lan7x.h +++ b/drivers/usb/eth/lan7x.h @@ -94,7 +94,7 @@ #define LAN7X_MAC_RX_MAX_SIZE(mtu) \ ((mtu) << 16) /* Max frame size */ #define LAN7X_MAC_RX_MAX_SIZE_DEFAULT \ - LAN7X_MAC_RX_MAX_SIZE(ETH_FRAME_LEN + 4 /* VLAN */ + 4 /* CRC */) + LAN7X_MAC_RX_MAX_SIZE(PKTSIZE_ALIGN + 4 /* VLAN */ + 4 /* CRC */) /* Timeouts */ #define USB_CTRL_SET_TIMEOUT_MS 5000 |