diff options
| author | Jiri Pirko <jpirko@redhat.com> | 2012-04-04 08:16:26 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-04-04 20:30:40 -0400 |
| commit | 2615598fc100451c71b83d06bdf5faead619a40e (patch) | |
| tree | d8df65665fecf7dfd25d42ba862c6f929be43ca3 /include/linux | |
| parent | bd856615c128c40d189d6dd68dde7afe15ed3446 (diff) | |
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')
| -rw-r--r-- | include/linux/if_team.h | 8 |
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 { | |||
| 68 | enum team_option_type { | 68 | 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 | }; | 72 | }; |
| 72 | 73 | ||
| 73 | struct team_option { | 74 | struct team_option { |
| @@ -82,6 +83,13 @@ struct team_option { | |||
| 82 | bool removed; | 83 | bool removed; |
| 83 | }; | 84 | }; |
| 84 | 85 | ||
| 86 | struct team_option_binary { | ||
| 87 | u32 data_len; | ||
| 88 | void *data; | ||
| 89 | }; | ||
| 90 | |||
| 91 | #define team_optarg_tbinary(arg) (*((struct team_option_binary **) arg)) | ||
| 92 | |||
| 85 | struct team_mode { | 93 | struct team_mode { |
| 86 | struct list_head list; | 94 | struct list_head list; |
| 87 | const char *kind; | 95 | const char *kind; |
