ice: improve print for VF's when adding/deleting MAC filters
authorBrett Creeley <brett.creeley@intel.com>
Thu, 25 Jul 2019 08:55:41 +0000 (01:55 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 20 Aug 2019 21:44:03 +0000 (14:44 -0700)
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: Brett Creeley <brett.creeley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c

index 61cf1c5af928b1fe47b74c021d9d4712a0a47c89..1b1d1ea0c8f9fc44ca64e47475b231f8baa0c602 100644 (file)
@@ -2283,8 +2283,8 @@ ice_vc_handle_mac_addr_msg(struct ice_vf *vf, u8 *msg, bool set)
 
        if (v_ret) {
                dev_err(&pf->pdev->dev,
-                       "can't update MAC filters for VF %d, error %d\n",
-                       vf->vf_id, v_ret);
+                       "can't %s MAC filters for VF %d, error %d\n",
+                       set ? "add" : "remove", vf->vf_id, v_ret);
        } else {
                if (set)
                        vf->num_mac += mac_count;