aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2020-12-01 12:42:23 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2020-12-01 12:42:23 +0000
commitf60b672f933bc816328d12d47e68a9e1ca14f0ff (patch)
treef6eb0bf9fb058e5cb4db7408cc0de0da067ce54e
parent0da0fedafa6a48bbc18efcad1258aa67cb900818 (diff)
downloadsrc-f60b672f933bc816328d12d47e68a9e1ca14f0ff.tar.gz
src-f60b672f933bc816328d12d47e68a9e1ca14f0ff.zip
MFC r367555:
Include GID type when deleting GIDs from HW table under RoCE in mlx4ib. Refer to the Linux commit mentioned below for a more detailed description. Linux commit: a18177925c252da7801149abe217c05b80884798 Requested by: Isilon Sponsored by: Mellanox Technologies // NVIDIA Networking
Notes
Notes: svn path=/stable/11/; revision=368216
-rw-r--r--sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c b/sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
index e6cccdfc238a..cbab0c474fdc 100644
--- a/sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
+++ b/sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
@@ -371,8 +371,13 @@ static int mlx4_ib_del_gid(struct ib_device *device,
if (!gids) {
ret = -ENOMEM;
} else {
- for (i = 0; i < MLX4_MAX_PORT_GIDS; i++)
- memcpy(&gids[i].gid, &port_gid_table->gids[i].gid, sizeof(union ib_gid));
+ for (i = 0; i < MLX4_MAX_PORT_GIDS; i++) {
+ memcpy(&gids[i].gid,
+ &port_gid_table->gids[i].gid,
+ sizeof(union ib_gid));
+ gids[i].gid_type =
+ port_gid_table->gids[i].gid_type;
+ }
}
}
spin_unlock_bh(&iboe->lock);