linux/drivers/infiniband/hw/mlx5
Bodong Wang 402ca53644 IB/mlx5: Report mlx5 TSO capabilities when querying device
Enable mlx5 based hardware to report TCP segmentation offload (TSO)
capabilities from kernel to user space. A TSO enabled NIC will accept
big chunks of data with sizes greater than MTU for TCP traffic.  The TSO
engine will break the data into separate packets and will insert headers
automatically.

The capabilities are exposed to user space through query_device by uhw
directly. The following capabilities are reported:

1. The maximum payload size in bytes supported for segmentation by TSO
   engine.
2. Bitmap showing which QP types are supported by TSO operation. The bitmap
   is built by members from 'enmu ib_qp_type'. For example, similar code
   should be performed if UD QP is supported:
	supported_qpts |= 1 << IB_QPT_UD;

To make user-space library aware of whether kernel supports uhw or not, a
new flag: cmds_supp_uhw will be returned back to user-space through
alloc_ucontext.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-06-23 11:09:18 -04:00
..
Kconfig net/mlx5: Extend mlx5_core to support ConnectX-4 Ethernet functionality 2015-05-30 18:24:51 -07:00
Makefile IB/mlx5: Implement callbacks for manipulating VFs 2016-03-21 17:13:14 -04:00
ah.c IB/mlx5: Add RoCE fields to Address Vector 2015-12-23 12:07:37 -05:00
cq.c IB/mlx5: Reset flow support for IB kernel ULPs 2016-06-23 11:02:45 -04:00
doorbell.c IB/mlx5: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
gsi.c IB/mlx5: Eliminate GSI RX QP's send buffers 2016-03-01 11:04:07 -05:00
ib_virt.c IB/mlx5: Implement callbacks for manipulating VFs 2016-03-21 17:13:14 -04:00
mad.c net/mlx5_core: Add VF param when querying vport counter 2016-03-21 17:13:14 -04:00
main.c IB/mlx5: Report mlx5 TSO capabilities when querying device 2016-06-23 11:09:18 -04:00
mem.c IB/mlx5: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
mlx5_ib.h IB/mlx5: Reset flow support for IB kernel ULPs 2016-06-23 11:02:45 -04:00
mr.c IB/mlx5: Reset flow support for IB kernel ULPs 2016-06-23 11:02:45 -04:00
odp.c net/mlx5: Refactor mlx5_core_mr to mkey 2016-03-01 11:18:37 -05:00
qp.c IB/mlx5: Reset flow support for IB kernel ULPs 2016-06-23 11:02:45 -04:00
srq.c IB/mlx5: Reset flow support for IB kernel ULPs 2016-06-23 11:02:45 -04:00
user.h IB/mlx5: Report mlx5 TSO capabilities when querying device 2016-06-23 11:09:18 -04:00