dm: eth: Pass the packet pointer as a parameter to recv
authorJoe Hershberger <joe.hershberger@ni.com>
Sun, 22 Mar 2015 22:09:12 +0000 (17:09 -0500)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:12 +0000 (11:11 -0600)
commit17591405a7b932ba0a66107645f5ff5f6f36da75
tree3fbe0d78285e324191251d90bd551cdef0435cb8
parent2a504df00652ede0316e2cf872ab065090617a8e
dm: eth: Pass the packet pointer as a parameter to recv

Stop forcing drivers to call net_process_received_packet() - formerly
called NetReceive(). Now the uclass will handle calling the driver for
each packet until the driver errors or has nothing to return. The uclass
will then pass the good packets off to the network stack by calling
net_process_received_packet().

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
include/net.h
net/eth.c