aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_team.h
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2012-04-10 01:15:43 -0400
committerDavid S. Miller <davem@davemloft.net>2012-04-11 10:03:51 -0400
commit14f066bab19946545130a7379f420af860a02ae8 (patch)
tree7d8bac0fb889e2c7bee2c129d540ce6e6cacb340 /include/linux/if_team.h
parent80f7c6683fe0e891ef1db7c967d538b5fdddd22c (diff)
team: add bool option type
Add another (hopefully last) option type. Use NLA_FLAG to implement that. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_team.h')
-rw-r--r--include/linux/if_team.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/if_team.h b/include/linux/if_team.h
index 6f27c841c9a8..78c84fd9a170 100644
--- a/include/linux/if_team.h
+++ b/include/linux/if_team.h
@@ -69,6 +69,7 @@ enum team_option_type {
69 TEAM_OPTION_TYPE_U32, 69 TEAM_OPTION_TYPE_U32,
70 TEAM_OPTION_TYPE_STRING, 70 TEAM_OPTION_TYPE_STRING,
71 TEAM_OPTION_TYPE_BINARY, 71 TEAM_OPTION_TYPE_BINARY,
72 TEAM_OPTION_TYPE_BOOL,
72}; 73};
73 74
74struct team_gsetter_ctx { 75struct team_gsetter_ctx {
@@ -79,6 +80,7 @@ struct team_gsetter_ctx {
79 const void *ptr; 80 const void *ptr;
80 u32 len; 81 u32 len;
81 } bin_val; 82 } bin_val;
83 bool bool_val;
82 } data; 84 } data;
83 struct team_port *port; 85 struct team_port *port;
84}; 86};