diff options
| author | Hiroshi Shimamoto <[email protected]> | 2015-08-28 06:57:55 +0000 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2015-10-23 05:44:28 -0700 |
| commit | dd461d6aa894761fe67c30ddf81eec0d08be216b (patch) | |
| tree | 41abf7613d153588833dd9d47f89a0a8ae68ec18 /include/uapi | |
| parent | 2fc4cd52fa7ed86e9d1df94e459b6a2435bfa9c7 (diff) | |
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 <[email protected]>
Signed-off-by: Hiroshi Shimamoto <[email protected]>
Acked-by: Greg Rose <[email protected]>
Tested-by: Krishneil Singh <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/if_link.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h index e3b6217f34f1..a7aea8418abb 100644 --- a/include/uapi/linux/if_link.h +++ b/include/uapi/linux/if_link.h @@ -550,6 +550,7 @@ enum { * on/off switch */ IFLA_VF_STATS, /* network device statistics */ + IFLA_VF_TRUST, /* Trust VF */ __IFLA_VF_MAX, }; @@ -611,6 +612,11 @@ enum { #define IFLA_VF_STATS_MAX (__IFLA_VF_STATS_MAX - 1) +struct ifla_vf_trust { + __u32 vf; + __u32 setting; +}; + /* VF ports management section * * Nested layout of set/get msg is: |