Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net/mlx5: Add IFC bits for migration state

Add the relevant IFC bits for querying an extra migration state from the
device.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20260317161753.18964-5-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex@shazbot.org>

authored by

Yishai Hadas and committed by
Alex Williamson
4bee09a5 c9954986

+14 -2
+14 -2
include/linux/mlx5/mlx5_ifc.h
··· 2173 2173 u8 sf_eq_usage[0x1]; 2174 2174 u8 reserved_at_d3[0x5]; 2175 2175 u8 multiplane[0x1]; 2176 - u8 reserved_at_d9[0x7]; 2176 + u8 migration_state[0x1]; 2177 + u8 reserved_at_da[0x6]; 2177 2178 2178 2179 u8 cross_vhca_object_to_object_supported[0x20]; 2179 2180 ··· 13281 13280 u8 reserved_at_60[0x20]; 13282 13281 }; 13283 13282 13283 + enum { 13284 + MLX5_QUERY_VHCA_MIG_STATE_UNINITIALIZED = 0x0, 13285 + MLX5_QUERY_VHCA_MIG_STATE_OPER_MIGRATION_IDLE = 0x1, 13286 + MLX5_QUERY_VHCA_MIG_STATE_OPER_MIGRATION_READY = 0x2, 13287 + MLX5_QUERY_VHCA_MIG_STATE_OPER_MIGRATION_DIRTY = 0x3, 13288 + MLX5_QUERY_VHCA_MIG_STATE_OPER_MIGRATION_INIT = 0x4, 13289 + }; 13290 + 13284 13291 struct mlx5_ifc_query_vhca_migration_state_out_bits { 13285 13292 u8 status[0x8]; 13286 13293 u8 reserved_at_8[0x18]; 13287 13294 13288 13295 u8 syndrome[0x20]; 13289 13296 13290 - u8 reserved_at_40[0x40]; 13297 + u8 reserved_at_40[0x20]; 13298 + 13299 + u8 migration_state[0x4]; 13300 + u8 reserved_at_64[0x1c]; 13291 13301 13292 13302 u8 required_umem_size[0x20]; 13293 13303