aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_link.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/if_link.h')
-rw-r--r--include/linux/if_link.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/if_link.h b/include/linux/if_link.h
index 2fc66dd783ee..0ee969a5593d 100644
--- a/include/linux/if_link.h
+++ b/include/linux/if_link.h
@@ -80,6 +80,24 @@ struct rtnl_link_ifmap {
80 __u8 port; 80 __u8 port;
81}; 81};
82 82
83/*
84 * IFLA_AF_SPEC
85 * Contains nested attributes for address family specific attributes.
86 * Each address family may create a attribute with the address family
87 * number as type and create its own attribute structure in it.
88 *
89 * Example:
90 * [IFLA_AF_SPEC] = {
91 * [AF_INET] = {
92 * [IFLA_INET_CONF] = ...,
93 * },
94 * [AF_INET6] = {
95 * [IFLA_INET6_FLAGS] = ...,
96 * [IFLA_INET6_CONF] = ...,
97 * }
98 * }
99 */
100
83enum { 101enum {
84 IFLA_UNSPEC, 102 IFLA_UNSPEC,
85 IFLA_ADDRESS, 103 IFLA_ADDRESS,
@@ -116,6 +134,9 @@ enum {
116 IFLA_STATS64, 134 IFLA_STATS64,
117 IFLA_VF_PORTS, 135 IFLA_VF_PORTS,
118 IFLA_PORT_SELF, 136 IFLA_PORT_SELF,
137 IFLA_AF_SPEC,
138 IFLA_GROUP, /* Group the device belongs to */
139 IFLA_NET_NS_FD,
119 __IFLA_MAX 140 __IFLA_MAX
120}; 141};
121 142
@@ -128,6 +149,14 @@ enum {
128#define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg)) 149#define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
129#endif 150#endif
130 151
152enum {
153 IFLA_INET_UNSPEC,
154 IFLA_INET_CONF,
155 __IFLA_INET_MAX,
156};
157
158#define IFLA_INET_MAX (__IFLA_INET_MAX - 1)
159
131/* ifi_flags. 160/* ifi_flags.
132 161
133 IFF_* flags. 162 IFF_* flags.
@@ -232,6 +261,7 @@ enum macvlan_mode {
232 MACVLAN_MODE_PRIVATE = 1, /* don't talk to other macvlans */ 261 MACVLAN_MODE_PRIVATE = 1, /* don't talk to other macvlans */
233 MACVLAN_MODE_VEPA = 2, /* talk to other ports through ext bridge */ 262 MACVLAN_MODE_VEPA = 2, /* talk to other ports through ext bridge */
234 MACVLAN_MODE_BRIDGE = 4, /* talk to bridge ports directly */ 263 MACVLAN_MODE_BRIDGE = 4, /* talk to bridge ports directly */
264 MACVLAN_MODE_PASSTHRU = 8,/* take over the underlying device */
235}; 265};
236 266
237/* SR-IOV virtual function management section */ 267/* SR-IOV virtual function management section */