]> git.baikalelectronics.ru Git - kernel.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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 23 Nov 2015 19:08:51 +0000 (11:08 -0800)
commit7677ba6ea9f57d86c47d4e2fa65a69950879efed
treebdc2676304a7b6eb9701d8a9d823b8cb177df154
parent26982b99225fb35ec0467705612bbecb61b2fb8d
ixgbevf: fix spoofed packets with random MAC

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>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
drivers/net/ethernet/intel/ixgbevf/vf.c