Home
last modified time | relevance | path

Searched refs:netdev_state (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dmp.c60 tracker.netdev_state[MLX5_LAG_P1].tx_enabled = true; in mlx5_lag_set_port_affinity()
61 tracker.netdev_state[MLX5_LAG_P2].tx_enabled = true; in mlx5_lag_set_port_affinity()
62 tracker.netdev_state[MLX5_LAG_P1].link_up = true; in mlx5_lag_set_port_affinity()
63 tracker.netdev_state[MLX5_LAG_P2].link_up = true; in mlx5_lag_set_port_affinity()
66 tracker.netdev_state[MLX5_LAG_P1].tx_enabled = true; in mlx5_lag_set_port_affinity()
67 tracker.netdev_state[MLX5_LAG_P1].link_up = true; in mlx5_lag_set_port_affinity()
69 tracker.netdev_state[MLX5_LAG_P2].link_up = false; in mlx5_lag_set_port_affinity()
73 tracker.netdev_state[MLX5_LAG_P1].link_up = false; in mlx5_lag_set_port_affinity()
75 tracker.netdev_state[MLX5_LAG_P2].link_up = true; in mlx5_lag_set_port_affinity()
83 if (tracker.netdev_state[MLX5_LAG_P1].tx_enabled) in mlx5_lag_set_port_affinity()
[all …]
H A Dlag.c158 if (!tracker->netdev_state[i].tx_enabled || in mlx5_infer_tx_disabled()
159 !tracker->netdev_state[i].link_up) in mlx5_infer_tx_disabled()
171 if (tracker->netdev_state[i].tx_enabled && in mlx5_infer_tx_enabled()
172 tracker->netdev_state[i].link_up) in mlx5_infer_tx_enabled()
327 if (tracker->netdev_state[i].tx_enabled && in mlx5_infer_tx_affinity_mapping()
328 tracker->netdev_state[i].link_up) in mlx5_infer_tx_affinity_mapping()
1088 tracker->netdev_state[idx] = *lag_lower_info; in mlx5_handle_changelowerstate_event()
1176 ldev->tracker.netdev_state[fn].link_up = 0; in mlx5_ldev_add_netdev()
1177 ldev->tracker.netdev_state[fn].tx_enabled = 0; in mlx5_ldev_add_netdev()
1484 if (ldev->tracker.netdev_state[i].tx_enabled) in mlx5_lag_get_roce_netdev()
H A Dlag.h47 struct netdev_lag_lower_state_info netdev_state[MLX5_MAX_PORTS]; member