projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drivers/net/vsc9953: Add VLAN commands for VSC9953
[oweals/u-boot.git]
/
drivers
/
net
/
mcffec.c
diff --git
a/drivers/net/mcffec.c
b/drivers/net/mcffec.c
index 7c4b210b00111070b4b037cb944a4e1481969bd1..fd7309937104407935fada5839769bbcb7eb8381 100644
(file)
--- a/
drivers/net/mcffec.c
+++ b/
drivers/net/mcffec.c
@@
-219,7
+219,8
@@
int fec_recv(struct eth_device *dev)
length -= 4;
/* Pass the packet up to the protocol layers. */
length -= 4;
/* Pass the packet up to the protocol layers. */
- NetReceive(NetRxPackets[info->rxIdx], length);
+ net_process_received_packet(net_rx_packets[info->rxIdx],
+ length);
fecp->eir |= FEC_EIR_RXF;
}
fecp->eir |= FEC_EIR_RXF;
}
@@
-477,7
+478,7
@@
int fec_init(struct eth_device *dev, bd_t * bd)
for (i = 0; i < PKTBUFSRX; i++) {
info->rxbd[i].cbd_sc = BD_ENET_RX_EMPTY;
info->rxbd[i].cbd_datlen = 0; /* Reset */
for (i = 0; i < PKTBUFSRX; i++) {
info->rxbd[i].cbd_sc = BD_ENET_RX_EMPTY;
info->rxbd[i].cbd_datlen = 0; /* Reset */
- info->rxbd[i].cbd_bufaddr = (uint)
NetRxP
ackets[i];
+ info->rxbd[i].cbd_bufaddr = (uint)
net_rx_p
ackets[i];
}
info->rxbd[PKTBUFSRX - 1].cbd_sc |= BD_ENET_RX_WRAP;
}
info->rxbd[PKTBUFSRX - 1].cbd_sc |= BD_ENET_RX_WRAP;