|
|
049c96 |
From 57400a02cdfa4332a927d0dbeed97d4e969fd070 Mon Sep 17 00:00:00 2001
|
|
|
049c96 |
From: Phil Sutter <psutter@redhat.com>
|
|
|
049c96 |
Date: Thu, 16 Jun 2016 16:50:43 +0200
|
|
|
049c96 |
Subject: [PATCH] add new IFLA_VF_TRUST netlink attribute
|
|
|
049c96 |
|
|
|
049c96 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1302119
|
|
|
049c96 |
Upstream Status: iproute2.git commit dddf1b44126ea
|
|
|
049c96 |
|
|
|
049c96 |
commit dddf1b44126eaa25c6698be618fb452fc7b9bed3
|
|
|
049c96 |
Author: Stephen Hemminger <shemming@brocade.com>
|
|
|
049c96 |
Date: Fri Oct 23 15:47:07 2015 -0700
|
|
|
049c96 |
|
|
|
049c96 |
add new IFLA_VF_TRUST netlink attribute
|
|
|
049c96 |
---
|
|
|
049c96 |
include/linux/if_link.h | 6 ++++++
|
|
|
049c96 |
1 file changed, 6 insertions(+)
|
|
|
049c96 |
|
|
|
049c96 |
diff --git a/include/linux/if_link.h b/include/linux/if_link.h
|
|
|
049c96 |
index 1934566..ca9a681 100644
|
|
|
049c96 |
--- a/include/linux/if_link.h
|
|
|
049c96 |
+++ b/include/linux/if_link.h
|
|
|
049c96 |
@@ -499,6 +499,7 @@ enum {
|
|
|
049c96 |
* on/off switch
|
|
|
049c96 |
*/
|
|
|
049c96 |
IFLA_VF_STATS, /* network device statistics */
|
|
|
049c96 |
+ IFLA_VF_TRUST, /* Trust VF */
|
|
|
049c96 |
__IFLA_VF_MAX,
|
|
|
049c96 |
};
|
|
|
049c96 |
|
|
|
049c96 |
@@ -560,6 +561,11 @@ enum {
|
|
|
049c96 |
|
|
|
049c96 |
#define IFLA_VF_STATS_MAX (__IFLA_VF_STATS_MAX - 1)
|
|
|
049c96 |
|
|
|
049c96 |
+struct ifla_vf_trust {
|
|
|
049c96 |
+ __u32 vf;
|
|
|
049c96 |
+ __u32 setting;
|
|
|
049c96 |
+};
|
|
|
049c96 |
+
|
|
|
049c96 |
/* VF ports management section
|
|
|
049c96 |
*
|
|
|
049c96 |
* Nested layout of set/get msg is:
|
|
|
049c96 |
--
|
|
|
049c96 |
1.8.3.1
|
|
|
049c96 |
|