From adf5d93e441eb3eacd8c0430d6064b35d47ad2a5 Mon Sep 17 00:00:00 2001 From: Joe Hershberger Date: Wed, 23 May 2012 07:59:13 +0000 Subject: 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 Acked-by: Simon Glass --- net/ping.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'net/ping.c') diff --git a/net/ping.c b/net/ping.c index 0f4d99088e..f0026cc420 100644 --- a/net/ping.c +++ b/net/ping.c @@ -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;*/ -- cgit