Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5149ee58 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

team: add mode priv to port

parent d299cd51
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -793,7 +793,8 @@ static int team_port_add(struct team *team, struct net_device *port_dev)
		return -EBUSY;
	}

	port = kzalloc(sizeof(struct team_port), GFP_KERNEL);
	port = kzalloc(sizeof(struct team_port) + team->mode->port_priv_size,
		       GFP_KERNEL);
	if (!port)
		return -ENOMEM;

+2 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ struct team_port {
	} orig;

	struct rcu_head rcu;
	long mode_priv[0];
};

struct team_mode_ops {
@@ -108,6 +109,7 @@ struct team_mode {
	const char *kind;
	struct module *owner;
	size_t priv_size;
	size_t port_priv_size;
	const struct team_mode_ops *ops;
};