OSDN Git Service

IB/mlx4: Report TSO capabilities
authorYishai Hadas <yishaih@mellanox.com>
Thu, 15 Mar 2018 14:56:39 +0000 (16:56 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Mar 2018 21:58:05 +0000 (15:58 -0600)
commit9c71172c4a2f6695fdfb89780da160f579a002c2
tree945cd52619b867f8032e907c6bb90fed59af9bfc
parent546b1452fdcccdcc98962b324cab6d74fc976fe9
IB/mlx4: Report TSO capabilities

Report to the user area the TSO device capabilities, it includes the
max_tso size and the QP types that support it.

The TSO is applicable only when when of the ports is ETH and the device
supports it.

uresp logic around rss_caps is updated to fix a till-now harmless bug
computing the length of the structure to copy. The code did not handle the
implicit padding before rss_caps correctly. This is necessay to copy
tss_caps successfully.

Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx4/main.c
include/uapi/rdma/mlx4-abi.h