if_link: Add control trust VF
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Fri, 28 Aug 2015 06:57:55 +0000 (06:57 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Oct 2015 12:44:28 +0000 (05:44 -0700)
commitdd461d6aa894761fe67c30ddf81eec0d08be216b
tree41abf7613d153588833dd9d47f89a0a8ae68ec18
parent2fc4cd52fa7ed86e9d1df94e459b6a2435bfa9c7
if_link: Add control trust VF

Add netlink directives and ndo entry to trust VF user.

This controls the special permission of VF user.
The administrator will dedicatedly trust VF user to use some features
which impacts security and/or performance.

The administrator never turn it on unless VF user is fully trusted.

CC: Sy Jong Choi <sy.jong.choi@intel.com>
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Acked-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
include/linux/if_link.h
include/linux/netdevice.h
include/uapi/linux/if_link.h
net/core/rtnetlink.c