• Saeed Mahameed's avatar
    net/mlx5: Accel: fpga tls fix cast to __be64 and incorrect argument types · aee3e9c4
    Saeed Mahameed authored
    tls handle and rcd_sn are actually big endian and not in host format.
    Fix that.
    
    Fix the following sparse warnings:
    drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c:177:21:
    warning: cast to restricted __be64
    
    drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c:178:52:
    warning: incorrect type in argument 2 (different base types)
        expected unsigned int [usertype] handle
        got restricted __be32 [usertype] handle
    Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
    aee3e9c4
tls.h 4.75 KB