Do not setup additional ENET_MAX_MTU macro.
Signed-off-by: Michal Simek <monstr@monstr.eu>
#undef DEBUG
-#define ENET_MAX_MTU PKTSIZE
-#define ENET_MAX_MTU_ALIGNED PKTSIZE_ALIGN
#define ENET_ADDR_LENGTH 6
/* EmacLite constants */
u32 maxtry = 1000;
- if (len > ENET_MAX_MTU)
- len = ENET_MAX_MTU;
+ if (len > PKTSIZE)
+ len = PKTSIZE;
while (!xemaclite_txbufferavailable(dev) && maxtry) {
udelay (10);
debug ("IP Packet\n");
break;
default:
- debug ("Other Packet\n");
- length = ENET_MAX_MTU;
+ debug("Other Packet\n");
+ length = PKTSIZE;
break;
}