mirror of
https://github.com/frank-w/u-boot.git
synced 2026-01-06 15:26:07 +08:00
net: Refactor to use NetSendPacket instead of eth_send directly
Use this entry-point consistently across the net/ code Use a static inline function to preserve code size Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -112,8 +112,7 @@ void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len)
|
||||
icmph->checksum = 0;
|
||||
icmph->checksum = ~NetCksum((uchar *)icmph,
|
||||
(len - IP_HDR_SIZE) >> 1);
|
||||
(void) eth_send((uchar *)et,
|
||||
ETHER_HDR_SIZE + len);
|
||||
NetSendPacket((uchar *)et, ETHER_HDR_SIZE + len);
|
||||
return;
|
||||
/* default:
|
||||
return;*/
|
||||
|
||||
Reference in New Issue
Block a user