freebsd-dev/sys/dev/mlx4/mlx4_ib
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_ib_ah.c Add support for prio-tagged traffic for RDMA in ibcore. 2018-07-17 09:11:53 +00:00
mlx4_ib_alias_GUID.c
mlx4_ib_cm.c
mlx4_ib_cq.c
mlx4_ib_doorbell.c
mlx4_ib_mad.c
mlx4_ib_main.c Bump version information in mlx4ib(4). 2018-03-07 13:59:46 +00:00
mlx4_ib_mcg.c
mlx4_ib_mr.c
mlx4_ib_qp.c
mlx4_ib_srq.c
mlx4_ib_sysfs.c
mlx4_ib_wc.c
mlx4_ib.h Optimize ibcore RoCE address handle creation from user-space. 2018-03-05 14:34:52 +00:00
wc.h