summaryrefslogtreecommitdiff
path: root/include/net.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-23 07:59:13 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-23 17:46:20 -0500
commitadf5d93e441eb3eacd8c0430d6064b35d47ad2a5 (patch)
treed8e088ac9d135ab710a276b405c3ed3e5f19b872 /include/net.h
parent61da3c2af8ba7a06cb1f7e9e0db54b9ddea532ce (diff)
downloadu-boot-imx-adf5d93e441eb3eacd8c0430d6064b35d47ad2a5.zip
u-boot-imx-adf5d93e441eb3eacd8c0430d6064b35d47ad2a5.tar.gz
u-boot-imx-adf5d93e441eb3eacd8c0430d6064b35d47ad2a5.tar.bz2
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>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h
index 128c5ea..3214830 100644
--- a/include/net.h
+++ b/include/net.h
@@ -472,7 +472,10 @@ extern void net_set_icmp_handler(rxhand_icmp_f *f); /* Set ICMP RX handler */
extern void NetSetTimeout(ulong, thand_f *);/* Set timeout handler */
/* Transmit "NetTxPacket" */
-extern void NetSendPacket(uchar *, int);
+static inline void NetSendPacket(uchar *pkt, int len)
+{
+ (void) eth_send(pkt, len);
+}
/*
* Transmit UDP packet, performing ARP request if needed