if_link: Add additional parameter to IFLA_VF_INFO for spoof checking
authorGreg Rose <gregory.v.rose@intel.com>
Sat, 8 Oct 2011 03:05:24 +0000 (03:05 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 16 Oct 2011 20:15:38 +0000 (13:15 -0700)
commit5f8444a3fa617076f8da51a3e8ecce01a5d7f738
tree196aa6b0e949ceef2bd7b639c300e40bc0bdb9ad
parenta90b412cb8c7ccc1689f9ea130883d00a1f0a5bb
if_link: Add additional parameter to IFLA_VF_INFO for spoof checking

Add configuration setting for drivers to turn spoof checking on or off
for discrete VFs.

v2 - Fix indentation problem, wrap the ifla_vf_info structure in
     #ifdef __KERNEL__ to prevent user space from accessing and
     change function paramater for the spoof check setting netdev
     op from u8 to bool.
v3 - Preset spoof check setting to -1 so that user space tools such
     as ip can detect that the driver didn't report a spoofcheck
     setting.  Prevents incorrect display of spoof check settings
     for drivers that don't report it.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
include/linux/if_link.h
include/linux/netdevice.h
net/core/rtnetlink.c