aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorEli Cohen <[email protected]>2022-01-24 11:30:46 +0200
committerSaeed Mahameed <[email protected]>2022-05-17 23:41:50 -0700
commitef9a3a4a813ac0debfd2d64b71db0a55dbc3efd7 (patch)
tree0e2c1c6fcd4753aafb887c549bb7cb86a1142346 /tools/perf/scripts/python/intel-pt-events.py
parent65810a2d2ab3c2a640e14a3e249c87e50675e6ce (diff)
net/mlx5: Lag, refactor lag state machine
LAG state machine is implemented using bit flags. However, all these bit flags, except for MLX5_LAG_FLAG_HASH_BASED, are really mutual exclusive. In addition, MLX5_LAG_FLAG_READY is used by bonding to mark if we have our netdevices successfully added to lag and does not really belong in the same flags variable as the other flags. Rename MLX5_LAG_FLAG_READY to MLX5_LAG_FLAG_NDEVS_READY to better reflect its purpose and put it in a new flags variable. For the rest of the flags, we introduce a mode enum to hold the state of the LAG. Remove the shared fdb boolean flag from struct mlx5_lag and store this configuration as a mode flag. Change all flag related operations to use standard Linux APIs. Signed-off-by: Eli Cohen <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions