freebsd-dev/sys/dev/mlx4
Hans Petter Selasky f4546fa376 Add support for prio-tagged traffic for RDMA in ibcore.
When receiving a PCP change all GID entries are reloaded.
This ensures the relevant GID entries use prio tagging,
by setting VLAN present and VLAN ID to zero.

The priority for prio tagged traffic is set using the regular
rdma_set_service_type() function.

Fake the real network device to have a VLAN ID of zero
when prio tagging is enabled. This is logic is hidden inside
the rdma_vlan_dev_vlan_id() function which must always be used
to retrieve the VLAN ID throughout all of ibcore and the
infiniband network drivers.

The VLAN presence information then propagates through all
of ibcore and so incoming connections will have the VLAN
bit set. The incoming VLAN ID is then checked against the
return value of rdma_vlan_dev_vlan_id().

MFC after:		1 week
Sponsored by:		Mellanox Technologies
2018-07-17 09:11:53 +00:00
..
mlx4_core Add mapping for several ethernet types used by Linux to FreeBSD 2018-03-06 12:58:00 +00:00
mlx4_en ifnet: Replace if_addr_lock rwlock with epoch + mutex 2018-05-18 20:13:34 +00:00
mlx4_ib Add support for prio-tagged traffic for RDMA in ibcore. 2018-07-17 09:11:53 +00:00
cmd.h Update the mlx4 core and mlx4en(4) modules towards Linux v4.9. 2017-11-15 11:14:39 +00:00
cq.h sys/dev/mlx[45]: fix uses of 1 << 31 2018-01-12 06:36:44 +00:00
device.h Merge ^/head r325663 through r325841. 2017-11-15 11:28:11 +00:00
doorbell.h
driver.h Update the mlx4 core and mlx4en(4) modules towards Linux v4.9. 2017-11-15 11:14:39 +00:00
qp.h sys/dev/mlx[45]: fix uses of 1 << 31 2018-01-12 06:36:44 +00:00
srq.h
stats.h Update the mlx4 core and mlx4en(4) modules towards Linux v4.9. 2017-11-15 11:14:39 +00:00