]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d4185a180a8e0e379a30a925d8aa64d31fbee76
tree196aa6b0e949ceef2bd7b639c300e40bc0bdb9ad
parentc56c5f3df1b08fd601194488e37221c72a90b6fe
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