This patch adds two exported functions. One allows to mark option
instance as changed and the second processes change check and does
transfer of changed options to userspace.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
/*******************
* Options handling
*******************/
/*******************
* Options handling
*******************/
+void team_option_inst_set_change(struct team_option_inst_info *opt_inst_info)
+{
+ struct team_option_inst *opt_inst;
+
+ opt_inst = container_of(opt_inst_info, struct team_option_inst, info);
+ opt_inst->changed = true;
+}
+EXPORT_SYMBOL(team_option_inst_set_change);
+
+void team_options_change_check(struct team *team)
+{
+ __team_options_change_check(team);
+}
+EXPORT_SYMBOL(team_options_change_check);
+
+
/****************
* Mode handling
****************/
/****************
* Mode handling
****************/
mutex_unlock(&team->lock);
}
mutex_unlock(&team->lock);
}
/************************************
* Net device notifier event handler
************************************/
/************************************
* Net device notifier event handler
************************************/
int (*setter)(struct team *team, struct team_gsetter_ctx *ctx);
};
int (*setter)(struct team *team, struct team_gsetter_ctx *ctx);
};
+extern void team_option_inst_set_change(struct team_option_inst_info *opt_inst_info);
+extern void team_options_change_check(struct team *team);
+
struct team_mode {
const char *kind;
struct module *owner;
struct team_mode {
const char *kind;
struct module *owner;