aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenlei Huang <zlei@FreeBSD.org>2023-04-05 16:06:15 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2023-04-05 16:08:23 +0000
commitda4068c4e1a090915a1a763c0d9fa5dc5b80842c (patch)
tree5f8954f90e7ad2034f77de5752f5065a7868012b
parentfc6c93b6a5cf14cbc099f550f745d63779499fec (diff)
downloadsrc-da4068c4e1a090915a1a763c0d9fa5dc5b80842c.tar.gz
src-da4068c4e1a090915a1a763c0d9fa5dc5b80842c.zip
mlx5ib(4): Mark driver knows net epoch
This driver has already been EPOCH(9) aware since e48813009c6a. Reviewed by: hselasky Tested by: hselasky MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D39406
-rw-r--r--sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c b/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
index 0b0a4b2019a0..b6b610848a1b 100644
--- a/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
+++ b/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
@@ -681,7 +681,8 @@ static int mlx5_ib_query_device(struct ib_device *ibdev,
props->device_cap_flags = IB_DEVICE_CHANGE_PHY_PORT |
IB_DEVICE_PORT_ACTIVE_EVENT |
IB_DEVICE_SYS_IMAGE_GUID |
- IB_DEVICE_RC_RNR_NAK_GEN;
+ IB_DEVICE_RC_RNR_NAK_GEN |
+ IB_DEVICE_KNOWSEPOCH;
if (MLX5_CAP_GEN(mdev, pkv))
props->device_cap_flags |= IB_DEVICE_BAD_PKEY_CNTR;