ice: Set rq_last_status when cleaning rq
authorJeff Shaw <jeffrey.b.shaw@intel.com>
Wed, 18 Apr 2018 18:23:27 +0000 (11:23 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 11 May 2018 18:43:17 +0000 (11:43 -0700)
commitea3beca422742ca7e8502496e2806421d5e9d6fd
tree4a9394232167195c395d5f079aef2d9e861358f4
parent5ae4bbf76928b401fe467e837073d939300adbf0
ice: Set rq_last_status when cleaning rq

Prior to this commit, the rq_last_status was only set when hardware
responded with an error. This leads to rq_last_status being invalid
in the future when hardware eventually responds without error. This
commit resolves the issue by unconditionally setting rq_last_status
with the value returned in the descriptor.

Fixes: 940b61af02f4 ("ice: Initialize PF and setup miscellaneous
interrupt")

Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_controlq.c