i40e: lie to the VF
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 3 May 2016 22:13:13 +0000 (15:13 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 14 May 2016 06:23:19 +0000 (23:23 -0700)
commiteee4172abcdcc610e40eb9513d19ff16c7820270
tree2c6a2ad4b3a4bbdd313a224ba9635dadc37b2666
parentb5569892309e2e62641076f43aef6919286343b4
i40e: lie to the VF

If an untrusted VF attempts to configure promiscuous mode, log a message
pointing out its naughty behavior. But then, instead of returning an
error to the offender, just lie to it and say everything's OK. It will
continue on its way, thinking it's in promiscuous mode, but receiving no
packets except its own.

Change-ID: I63369215b1720f3c531eedfc06af86ff8c0e3dc8
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>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c