This reverts commit c0071be0e16c461680d87b763ba1ee5e46548fde. The cited commit removed the validity checks which initialized the window_sz and never removed the use of the now uninitialized variable, so now we are left with wrong value in the window size and the following clang warning: [-Wuninitialized] drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c:232:45: warning: variable 'window_sz' is uninitialized when used here MLX5_SET(macsec_aso, aso_ctx, window_size, window_sz); Revet at this time to address the clang issue due to lack of time to test the proper solution.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -11611,6 +11611,13 @@ enum { · 11610 unmodified lines | ||
| 11611 | 11611 | MLX5_MACSEC_ASO_REPLAY_PROTECTION = 0x1, |
| 11612 | 11612 | }; |
| 11613 | 11613 | |
| 11614 | +enum { | |
| 11615 | + MLX5_MACSEC_ASO_REPLAY_WIN_32BIT = 0x0, | |
| 11616 | + MLX5_MACSEC_ASO_REPLAY_WIN_64BIT = 0x1, | |
| 11617 | + MLX5_MACSEC_ASO_REPLAY_WIN_128BIT = 0x2, | |
| 11618 | + MLX5_MACSEC_ASO_REPLAY_WIN_256BIT = 0x3, | |
| 11619 | +}; | |
| 11620 | + | |
| 11614 | 11621 | #define MLX5_MACSEC_ASO_INC_SN 0x2 |
| 11615 | 11622 | #define MLX5_MACSEC_ASO_REG_C_4_5 0x2 |
| 11616 | 11623 | |