]> Pileus Git - ~andy/linux/commitdiff
i40e: fix error return
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 28 Nov 2013 06:39:30 +0000 (06:39 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 4 Jan 2014 05:00:41 +0000 (21:00 -0800)
If the VF asks to add an invalid MAC address, tell it that instead of
just using a generic return code.

Change-Id: I366aff5449fa5874ad51e2734cac2a71783ab14b
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

index 1a7052a0284d9d25a79b72fd9640c0f1ee4c830c..4386a2f02a47bf21ed015b8c8d2035d39944eda7 100644 (file)
@@ -1340,7 +1340,7 @@ static int i40e_vc_add_mac_addr_msg(struct i40e_vf *vf, u8 *msg, u16 msglen)
                    is_zero_ether_addr(al->list[i].addr)) {
                        dev_err(&pf->pdev->dev, "invalid VF MAC addr %pMAC\n",
                                al->list[i].addr);
-                       aq_ret = I40E_ERR_PARAM;
+                       aq_ret = I40E_ERR_INVALID_MAC_ADDR;
                        goto error_param;
                }
        }