]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: Improve error handling
authorJoe Hershberger <joe.hershberger@ni.com>
Sun, 22 Mar 2015 22:09:24 +0000 (17:09 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:45 +0000 (21:47 +0200)
commit97eb4b66bfc7fa35189d92ee302ce85f16013672
treeba8f05c544a2884c1324eaf267f7dd002d354c25
parent412fd3ead88a128fb1ea1733fe55d5a24a3a3b93
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