]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Accel: fpga tls fix cast to __be64 and incorrect argument types
authorSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 May 2020 01:42:40 +0000 (18:42 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 30 May 2020 04:20:22 +0000 (21:20 -0700)
commit5aaa2846024dc746832cb9400125e21460c16ea9
treece6678b4254ea3a293167c4d4093dc70f1422018
parent894ce2dea5ac39ff53e72d7f58dd8b94fbf6e00e
net/mlx5: Accel: fpga tls fix cast to __be64 and incorrect argument types

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: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/accel/tls.c
drivers/net/ethernet/mellanox/mlx5/core/accel/tls.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.h