]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbevf: fix spoofed packets with random MAC
authorEmil Tantilov <emil.s.tantilov@intel.com>
Mon, 12 Oct 2015 17:56:00 +0000 (10:56 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:40:10 +0000 (16:40 -0700)
commit084f652eff57aab2ae59b467150c386f73ec7ebf
tree1088ad149d60cc6e8a7421ea27dfe8bbbc3513c0
parentae67df3aee5fb71987f3d68cb2dac4a890dbd3cc
ixgbevf: fix spoofed packets with random MAC

Orabug: 23177316

If ixgbevf is loaded while the corresponding PF interface is down
and the driver assigns a random MAC address, that address can be
overwritten with the value of hw->mac.perm_addr, which would be 0 at
that point.

To avoid this case we init hw->mac.perm_addr to the randomly generated
address and do not set it unless we receive ACK from ixgbe.

Reported-by: John Greene <jogreene@redhat.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 465fc643c2dcbe08e0debac80c225f6750b40d3c)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
drivers/net/ethernet/intel/ixgbevf/vf.c