forked from Minki/linux
qed: Fix removal of spoof checking for VFs
Driver has reverse logic for checking the result of the
spoof-checking configuration. As a result, it would log that
the configuration failed [even though it succeeded], and will
no longer do anything when requested to remove the configuration,
as it's accounting of the feature will be incorrect.
Fixes: 6ddc760825
("qed*: IOV support spoof-checking")
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c524e2f5b7
commit
cb1fa08877
@ -1404,7 +1404,7 @@ static int __qed_iov_spoofchk_set(struct qed_hwfn *p_hwfn,
|
||||
params.anti_spoofing_en = val;
|
||||
|
||||
rc = qed_sp_vport_update(p_hwfn, ¶ms, QED_SPQ_MODE_EBLOCK, NULL);
|
||||
if (rc) {
|
||||
if (!rc) {
|
||||
p_vf->spoof_chk = val;
|
||||
p_vf->req_spoofchk_val = p_vf->spoof_chk;
|
||||
DP_VERBOSE(p_hwfn, QED_MSG_IOV,
|
||||
|
Loading…
Reference in New Issue
Block a user