summaryrefslogtreecommitdiffstats
path: root/include/linux/if_team.h
diff options
context:
space:
mode:
authorJiri Pirko2012-04-04 14:16:26 +0200
committerDavid S. Miller2012-04-05 02:30:40 +0200
commit2615598fc100451c71b83d06bdf5faead619a40e (patch)
treed8df65665fecf7dfd25d42ba862c6f929be43ca3 /include/linux/if_team.h
parentstmmac: update the driver version March 2012 (diff)
downloadkernel-qcow2-linux-2615598fc100451c71b83d06bdf5faead619a40e.tar.gz
kernel-qcow2-linux-2615598fc100451c71b83d06bdf5faead619a40e.tar.xz
kernel-qcow2-linux-2615598fc100451c71b83d06bdf5faead619a40e.zip
team: add binary option type
For transfering generic binary data (e.g. BPF code), introduce new binary option type. 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/if_team.h b/include/linux/if_team.h
index 58404b0c5010..41163ac14ab4 100644
--- a/include/linux/if_team.h
+++ b/include/linux/if_team.h
@@ -68,6 +68,7 @@ struct team_mode_ops {
enum team_option_type {
TEAM_OPTION_TYPE_U32,
TEAM_OPTION_TYPE_STRING,
+ TEAM_OPTION_TYPE_BINARY,
};
struct team_option {
@@ -82,6 +83,13 @@ struct team_option {
bool removed;
};
+struct team_option_binary {
+ u32 data_len;
+ void *data;
+};
+
+#define team_optarg_tbinary(arg) (*((struct team_option_binary **) arg))
+
struct team_mode {
struct list_head list;
const char *kind;