]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc737e28e66ad65d108d6aad9378e1ace5a13759
tree4a9394232167195c395d5f079aef2d9e861358f4
parentf76173b6ef3044f67ccabd7bac5a0b74898c05bc
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: cc9003ddc95f ("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