From: Mintz, Yuval Date: Sun, 19 Mar 2017 11:08:19 +0000 (+0200) Subject: qed: Raise verbosity of Malicious VF indications X-Git-Tag: v4.1.12-107.0.20170801_2000~96 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5e2b83b97456285759402bd59145e72ae0563340;p=users%2Fjedix%2Flinux-maple.git qed: Raise verbosity of Malicious VF indications Orabug: 25933053, 26439680 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 Signed-off-by: David S. Miller Signed-off-by: Brian Maly --- diff --git a/drivers/net/ethernet/qlogic/qed/qed_sriov.c b/drivers/net/ethernet/qlogic/qed/qed_sriov.c index 850bb9ffbb7ea..ffd4dd60a322c 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_sriov.c +++ b/drivers/net/ethernet/qlogic/qed/qed_sriov.c @@ -3332,11 +3332,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,