summaryrefslogtreecommitdiffstats
path: root/drivers/net/team/team_mode_loadbalance.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2015-12-03 12:12:13 +0100
committerDavid S. Miller <davem@davemloft.net>2015-12-03 17:49:26 +0100
commit8fd728566a354f7bc9cb6e781f185b8c39cf505b (patch)
treee11f678462aa460370e9a1e6fb4644f1497b8696 /drivers/net/team/team_mode_loadbalance.c
parentnet: add info struct for LAG changeupper (diff)
downloadlinux-8fd728566a354f7bc9cb6e781f185b8c39cf505b.tar.xz
linux-8fd728566a354f7bc9cb6e781f185b8c39cf505b.zip
team: fill-up LAG changeupper info struct and pass it along
Initialize netdev_lag_upper_info structure by TX type according to current team mode and pass it along via netdev_master_upper_dev_link. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/team/team_mode_loadbalance.c')
-rw-r--r--drivers/net/team/team_mode_loadbalance.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/team/team_mode_loadbalance.c b/drivers/net/team/team_mode_loadbalance.c
index a1536d0d83a9..cdb19b385d42 100644
--- a/drivers/net/team/team_mode_loadbalance.c
+++ b/drivers/net/team/team_mode_loadbalance.c
@@ -661,6 +661,7 @@ static const struct team_mode lb_mode = {
.priv_size = sizeof(struct lb_priv),
.port_priv_size = sizeof(struct lb_port_priv),
.ops = &lb_mode_ops,
+ .lag_tx_type = NETDEV_LAG_TX_TYPE_HASH,
};
static int __init lb_init_module(void)