summaryrefslogtreecommitdiffstats
path: root/include/linux/if_team.h
diff options
context:
space:
mode:
authorJiri Pirko2012-04-10 07:15:43 +0200
committerDavid S. Miller2012-04-11 16:03:51 +0200
commit14f066bab19946545130a7379f420af860a02ae8 (patch)
tree7d8bac0fb889e2c7bee2c129d540ce6e6cacb340 /include/linux/if_team.h
parentteam: add support for per-port options (diff)
downloadkernel-qcow2-linux-14f066bab19946545130a7379f420af860a02ae8.tar.gz
kernel-qcow2-linux-14f066bab19946545130a7379f420af860a02ae8.tar.xz
kernel-qcow2-linux-14f066bab19946545130a7379f420af860a02ae8.zip
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 {
TEAM_OPTION_TYPE_U32,
TEAM_OPTION_TYPE_STRING,
TEAM_OPTION_TYPE_BINARY,
+ TEAM_OPTION_TYPE_BOOL,
};
struct team_gsetter_ctx {
@@ -79,6 +80,7 @@ struct team_gsetter_ctx {
const void *ptr;
u32 len;
} bin_val;
+ bool bool_val;
} data;
struct team_port *port;
};