]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
i40e: don't add zero MAC filter
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 19 Nov 2015 19:34:17 +0000 (11:34 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Feb 2016 15:56:03 +0000 (08:56 -0700)
commit967e7ecb59437f9a3dfd3a4e7c391212be4dd573
treeec516c8a065cb92a245e7b3cb9b5c18b78110891
parent8a2580e7c3a249186abad0fac939f5dea6a47ec7
i40e: don't add zero MAC filter

BugLink: http://bugs.launchpad.net/bugs/1536474
When VFs are created, the MAC address defaults to all zeros, indicating
to the VF driver that it should use a random MAC address. However, the
PF driver was incorrectly adding this zero MAC to the filter table,
along with the VF's randomly generated MAC address.

Check for a good address before adding the default filter. While we're
at it, make the error message a bit more useful.

Change-ID: Ia100947d68140e0f73a19ba755cbffc3e79a8fcf
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit b7b713a8eaf325607d37229f024ad0b9f3e7f320)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c