net: Renamed network data receive function
Renamed net_recv() to net_recv_data() so that the more generic name can be used by applications. The net_recv_data() is only meant to be used when L2 layer feeds data into L3 (IP) layer. Change-Id: Iba155d51f81e3b99964fa916fe87a05a8bf8766a Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
26cc76f976
commit
5729d1c461
3 changed files with 4 additions and 4 deletions
|
@ -274,7 +274,7 @@ static void init_rx_queue(void)
|
|||
}
|
||||
|
||||
/* Called by driver when an IP packet has been received */
|
||||
int net_recv(struct net_if *iface, struct net_buf *buf)
|
||||
int net_recv_data(struct net_if *iface, struct net_buf *buf)
|
||||
{
|
||||
if (!buf->frags) {
|
||||
return -ENODATA;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue