Lines Matching full:lag

1019 				  struct dsa_lag lag,  in qca8k_lag_can_offload()  argument
1026 if (!lag.id) in qca8k_lag_can_offload()
1029 dsa_lag_foreach_port(dp, ds->dst, &lag) in qca8k_lag_can_offload()
1030 /* Includes the port joining the LAG */ in qca8k_lag_can_offload()
1035 "Cannot offload more than 4 LAG ports"); in qca8k_lag_can_offload()
1041 "Can only offload LAG using hash TX type"); in qca8k_lag_can_offload()
1056 struct dsa_lag lag, in qca8k_lag_setup_hash() argument
1059 struct net_device *lag_dev = lag.dev; in qca8k_lag_setup_hash()
1078 /* Check if we are the unique configured LAG */ in qca8k_lag_setup_hash()
1080 if (i != lag.id && dsa_lag_by_id(ds->dst, i)) { in qca8k_lag_setup_hash()
1086 * is set to all the 4 possible lag. in qca8k_lag_setup_hash()
1087 * If we are the unique LAG we can set whatever hash in qca8k_lag_setup_hash()
1089 * To change hash mode it's needed to remove all LAG in qca8k_lag_setup_hash()
1095 netdev_err(lag_dev, "Error: Mismatched Hash Mode across different lag is not supported\n"); in qca8k_lag_setup_hash()
1104 struct dsa_lag lag, bool delete) in qca8k_lag_refresh_portmap() argument
1110 /* DSA LAG IDs are one-based, hardware is zero-based */ in qca8k_lag_refresh_portmap()
1111 id = lag.id - 1; in qca8k_lag_refresh_portmap()
1172 int qca8k_port_lag_join(struct dsa_switch *ds, int port, struct dsa_lag lag, in qca8k_port_lag_join() argument
1178 if (!qca8k_lag_can_offload(ds, lag, info, extack)) in qca8k_port_lag_join()
1181 ret = qca8k_lag_setup_hash(ds, lag, info); in qca8k_port_lag_join()
1185 return qca8k_lag_refresh_portmap(ds, port, lag, false); in qca8k_port_lag_join()
1189 struct dsa_lag lag) in qca8k_port_lag_leave() argument
1191 return qca8k_lag_refresh_portmap(ds, port, lag, true); in qca8k_port_lag_leave()