mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-13 14:06:07 -04:00
net: emaclite: Use PKTSIZE directly
Do not setup additional ENET_MAX_MTU macro. Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
947324b9ca
commit
8043925204
@ -31,8 +31,6 @@
|
|||||||
|
|
||||||
#undef DEBUG
|
#undef DEBUG
|
||||||
|
|
||||||
#define ENET_MAX_MTU PKTSIZE
|
|
||||||
#define ENET_MAX_MTU_ALIGNED PKTSIZE_ALIGN
|
|
||||||
#define ENET_ADDR_LENGTH 6
|
#define ENET_ADDR_LENGTH 6
|
||||||
|
|
||||||
/* EmacLite constants */
|
/* EmacLite constants */
|
||||||
@ -212,8 +210,8 @@ static int emaclite_send (struct eth_device *dev, volatile void *ptr, int len)
|
|||||||
|
|
||||||
u32 maxtry = 1000;
|
u32 maxtry = 1000;
|
||||||
|
|
||||||
if (len > ENET_MAX_MTU)
|
if (len > PKTSIZE)
|
||||||
len = ENET_MAX_MTU;
|
len = PKTSIZE;
|
||||||
|
|
||||||
while (!xemaclite_txbufferavailable(dev) && maxtry) {
|
while (!xemaclite_txbufferavailable(dev) && maxtry) {
|
||||||
udelay (10);
|
udelay (10);
|
||||||
@ -329,7 +327,7 @@ static int emaclite_recv(struct eth_device *dev)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
debug("Other Packet\n");
|
debug("Other Packet\n");
|
||||||
length = ENET_MAX_MTU;
|
length = PKTSIZE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user