]> git.ipfire.org Git - thirdparty/u-boot.git/commit - net/net.c
net: Improve error handling
authorJoe Hershberger <joe.hershberger@ni.com>
Sun, 22 Mar 2015 22:09:24 +0000 (17:09 -0500)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:14 +0000 (11:11 -0600)
commit60304592b96414b9d84a919262e4b2daf1a954fb
tree9b74a696268d3cc4539523bfa9bb610ee9905886
parent22f68524f84c3a0d620e787c51d5f244ef8e0aca
net: Improve error handling

Take a pass at plumbing errors through to the users of the network stack

Currently only the start() function errors will be returned from
NetLoop(). recv() tends not to have errors, so that is likely not worth
adding. send() certainly can return errors, but this patch does not
attempt to plumb them yet. halt() is not expected to error.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/net.h
net/eth.c
net/net.c
test/dm/eth.c