projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cccf6f5
)
qed: Raise verbosity of Malicious VF indications
author
Mintz, Yuval
<
[email protected]
>
Sun, 19 Mar 2017 11:08:19 +0000
(13:08 +0200)
committer
David S. Miller
<
[email protected]
>
Wed, 22 Mar 2017 02:02:37 +0000
(19:02 -0700)
Malicious VF existance should be interesting enough for the
hyperuser. Change the PF indication that one of its child VF
became malicious to appear by default.
Signed-off-by: Yuval Mintz <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/qlogic/qed/qed_sriov.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/qlogic/qed/qed_sriov.c
b/drivers/net/ethernet/qlogic/qed/qed_sriov.c
index d592de0d66a8662d1748a253d07b781c39c8844a..0d37d73335a236fdecb5d969e2bef2a915de2933 100644
(file)
--- a/
drivers/net/ethernet/qlogic/qed/qed_sriov.c
+++ b/
drivers/net/ethernet/qlogic/qed/qed_sriov.c
@@
-3386,11
+3386,17
@@
static void qed_sriov_vfpf_malicious(struct qed_hwfn *p_hwfn,
if (!p_vf)
return;
- DP_INFO(p_hwfn,
- "VF [%d] - Malicious behavior [%02x]\n",
- p_vf->abs_vf_id, p_data->err_id);
+ if (!p_vf->b_malicious) {
+ DP_NOTICE(p_hwfn,
+ "VF [%d] - Malicious behavior [%02x]\n",
+ p_vf->abs_vf_id, p_data->err_id);
- p_vf->b_malicious = true;
+ p_vf->b_malicious = true;
+ } else {
+ DP_INFO(p_hwfn,
+ "VF [%d] - Malicious behavior [%02x]\n",
+ p_vf->abs_vf_id, p_data->err_id);
+ }
}
int qed_sriov_eqe_event(struct qed_hwfn *p_hwfn,