Commit be6f7ef6 authored by Brett Creeley's avatar Brett Creeley Committed by Jeff Kirsher

ice: improve print for VF's when adding/deleting MAC filters

When we fail to add/delete MAC filters in the VF, the print doesn't
distinguish between the two. Fix that by printing whether or not we
failed to add/delete the MAC filter respectively.
Signed-off-by: default avatarBrett Creeley <brett.creeley@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent cbfe31b5
...@@ -2283,8 +2283,8 @@ ice_vc_handle_mac_addr_msg(struct ice_vf *vf, u8 *msg, bool set) ...@@ -2283,8 +2283,8 @@ ice_vc_handle_mac_addr_msg(struct ice_vf *vf, u8 *msg, bool set)
if (v_ret) { if (v_ret) {
dev_err(&pf->pdev->dev, dev_err(&pf->pdev->dev,
"can't update MAC filters for VF %d, error %d\n", "can't %s MAC filters for VF %d, error %d\n",
vf->vf_id, v_ret); set ? "add" : "remove", vf->vf_id, v_ret);
} else { } else {
if (set) if (set)
vf->num_mac += mac_count; vf->num_mac += mac_count;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment