net/bnx2x: check return codes during VF mailbox operation
authorChas Williams <3chas3@gmail.com>
Tue, 11 Oct 2016 23:04:59 +0000 (19:04 -0400)
committerBruce Richardson <bruce.richardson@intel.com>
Thu, 13 Oct 2016 13:30:59 +0000 (15:30 +0200)
commitcb7410790eb1f0811a2469d06d49587cfcafbd85
treed6ddd00f5d9d53468bb7ee4dd800bba2ecf1fb83
parentcf32c2e541a1c439c3a8a3091ffda0bc2f2666fd
net/bnx2x: check return codes during VF mailbox operation

Refactor bnx2x_do_req4pf() to be easier to read and return errors when
the transaction fails -- Previously, it could succeed when the control
channel was down.

Fixes: 540a211084a7 ("bnx2x: driver core")

Signed-off-by: Chas Williams <3chas3@gmail.com>
Acked-by: Harish Patil <harish.patil@qlogic.com>
drivers/net/bnx2x/bnx2x_vfpf.c