igb: add VF trust infrastructure
authorCorinna Vinschen <vinschen@redhat.com>
Wed, 17 Jan 2018 10:53:39 +0000 (11:53 +0100)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 5 Mar 2018 16:35:05 +0000 (08:35 -0800)
commit1b8b062a99dc76ba55b3ded97e90717768da47a9
tree1795fe55acf088b8ea001811fac819e571bb2327
parentbe631892948060f44b1ceee3132be1266932071e
igb: add VF trust infrastructure

* Add a per-VF value to know if a VF is trusted, by default don't
  trust VFs.

* Implement netdev op to trust VFs (igb_ndo_set_vf_trust) and add
  trust status to ndo_get_vf_config output.

* Allow a trusted VF to change MAC and MAC filters even if MAC
  has been administratively set.

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb.h
drivers/net/ethernet/intel/igb/igb_main.c