e1000/base: return code after setting receive address register
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Fri, 16 Oct 2015 02:50:52 +0000 (10:50 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 27 Oct 2015 13:20:24 +0000 (14:20 +0100)
commit939d7978bdc7ec3d6b7c508eb0c6ae85c14243bd
tree62a05a114fb613fa33b008baa49d110284af90a1
parentbf36acdc7d6fe04c9961299dd0d18b426ecf1036
e1000/base: return code after setting receive address register

Previously, the rar_set functions were of type void, and when they failed
to program an address register they would, at most,  put a message into
the log and end.  The fact that they failed to program an address into a
address register, if checked for, should be captured and passed back to
the caller so that the drivers can deal with the situation (or not) as
they deem best.
Drivers can ignore or use the return value.  No change to base drivers
is mandated by this change unless a driver wants to handle the failure
to program an address register (e.g. evaluate the return value).

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/e1000/base/e1000_82542.c
drivers/net/e1000/base/e1000_api.c
drivers/net/e1000/base/e1000_api.h
drivers/net/e1000/base/e1000_hw.h
drivers/net/e1000/base/e1000_ich8lan.c
drivers/net/e1000/base/e1000_mac.c
drivers/net/e1000/base/e1000_mac.h
drivers/net/e1000/base/e1000_vf.c
drivers/net/e1000/base/e1000_vf.h