Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88115fe7 authored by Bodong Wang's avatar Bodong Wang Committed by Doug Ledford
Browse files

IB/mlx5: report tx/rx checksum cap in query results



This patch will report the tx/rx checksum cap for raw qp via the
query device results.

Signed-off-by: default avatarBodong Wang <bodong@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent ee370950
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -496,6 +496,10 @@ static int mlx5_ib_query_device(struct ib_device *ibdev,
	if (MLX5_CAP_GEN(mdev, block_lb_mc))
		props->device_cap_flags |= IB_DEVICE_BLOCK_MULTICAST_LOOPBACK;

	if (MLX5_CAP_GEN(dev->mdev, eth_net_offloads) &&
	    (MLX5_CAP_ETH(dev->mdev, csum_cap)))
			props->device_cap_flags |= IB_DEVICE_RAW_IP_CSUM;

	props->vendor_part_id	   = mdev->pdev->device;
	props->hw_ver		   = mdev->pdev->revision;