History

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.

Hiroshi Shimamoto committed 11 years ago

Commit dd461d61 parent 2fc4cd54 files · +31 −3Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/if_link.h+6−0
@@ -550,6 +550,7 @@ enum { · 549 unmodified lines
550550 * on/off switch
551551 */
552552 IFLA_VF_STATS, /* network device statistics */
553+ IFLA_VF_TRUST, /* Trust VF */
553554 __IFLA_VF_MAX,
554555 };
555556
@@ -611,6 +612,11 @@ enum { · 55 unmodified lines
611612
612613 #define IFLA_VF_STATS_MAX (__IFLA_VF_STATS_MAX - 1)
613614
615+struct ifla_vf_trust {
616+ __u32 vf;
617+ __u32 setting;
618+};
619+
614620 /* VF ports management section
615621 *
616622 * Nested layout of set/get msg is: