team: add mode priv to port
[pandora-kernel.git] / include / linux / if_team.h
index 8185f57..54af95f 100644 (file)
@@ -61,6 +61,7 @@ struct team_port {
        } orig;
 
        struct rcu_head rcu;
+       long mode_priv[0];
 };
 
 struct team_mode_ops {
@@ -105,10 +106,10 @@ struct team_option {
 };
 
 struct team_mode {
-       struct list_head list;
        const char *kind;
        struct module *owner;
        size_t priv_size;
+       size_t port_priv_size;
        const struct team_mode_ops *ops;
 };
 
@@ -178,8 +179,8 @@ extern int team_options_register(struct team *team,
 extern void team_options_unregister(struct team *team,
                                    const struct team_option *option,
                                    size_t option_count);
-extern int team_mode_register(struct team_mode *mode);
-extern int team_mode_unregister(struct team_mode *mode);
+extern int team_mode_register(const struct team_mode *mode);
+extern void team_mode_unregister(const struct team_mode *mode);
 
 #endif /* __KERNEL__ */