mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
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>
This commit is contained in:
parent
bd856615c1
commit
2615598fc1
2 changed files with 34 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue