mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00: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:
parent
61da3c2af8
commit
adf5d93e44
5 changed files with 10 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue