net/mlx5: move static asserts to global scope