opnsense-src/sys/dev/mlx5
Hans Petter Selasky 1456d97c01 Optimize ibcore RoCE address handle creation from user-space.
Creating a UD address handle from user-space or from the kernel-space,
when the link layer is ethernet, requires resolving the remote L3
address into a L2 address. Doing this from the kernel is easy because
the required ARP(IPv4) and ND6(IPv6) address resolving APIs are readily
available. In userspace such an interface does not exist and kernel
help is required.

It should be noted that in an IP-based GID environment, the GID itself
does not contain all the information needed to resolve the destination
IP address. For example information like VLAN ID and SCOPE ID, is not
part of the GID and must be fetched from the GID attributes. Therefore
a source GID should always be referred to as a GID index. Instead of
going through various racy steps to obtain information about the
GID attributes from user-space, this is now all done by the kernel.

This patch optimises the L3 to L2 address resolving using the existing
create address handle uverbs interface, retrieving back the L2 address
as an additional user-space information structure.

This commit combines the following Linux upstream commits:

IB/core: Let create_ah return extended response to user
IB/core: Change ib_resolve_eth_dmac to use it in create AH
IB/mlx5: Make create/destroy_ah available to userspace
IB/mlx5: Use kernel driver to help userspace create ah
IB/mlx5: Report that device has udata response in create_ah

MFC after:	1 week
Sponsored by:	Mellanox Technologies
2018-03-05 14:34:52 +00:00
..
mlx5_core Remove duplicate static function prototype to fix compilation of 2017-11-18 20:32:09 +00:00
mlx5_en Move the mlx5 core device pointer first in the mlx5en priv. This help simplify 2018-01-30 12:38:06 +00:00
mlx5_ib Optimize ibcore RoCE address handle creation from user-space. 2018-03-05 14:34:52 +00:00
cq.h Add runtime support for modifying the SQ and RQ completion event 2017-01-20 11:11:49 +00:00
device.h sys/dev/mlx[45]: fix uses of 1 << 31 2018-01-12 06:36:44 +00:00
diagnostics.h Make "desc" pointer non-constant inside the mlx5_core_diagnostics_entry 2017-01-30 08:35:15 +00:00
doorbell.h
driver.h Add more and update existing mlx5 core firmware structure definitions and bits. 2017-11-10 14:39:03 +00:00
fs.h Refactor the flowsteering APIs used by mlx5en(4). This change is needed by 2017-11-10 09:49:08 +00:00
mlx5_ifc.h Add more and update existing mlx5 core firmware structure definitions and bits. 2017-11-10 14:39:03 +00:00
mlx5_rdma_if.h
qp.h sys/dev/mlx[45]: fix uses of 1 << 31 2018-01-12 06:36:44 +00:00
srq.h
vport.h Add API function to query port performance counters for infiniband and RoCE 2017-11-10 13:58:49 +00:00