aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c')
-rw-r--r--sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c b/sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
index 6742a1aeaf93..3cda28752592 100644
--- a/sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
+++ b/sys/dev/mlx4/mlx4_ib/mlx4_ib_qp.c
@@ -1790,7 +1790,7 @@ static int __mlx4_ib_modify_qp(struct ib_qp *ibqp,
status = -ENOENT;
if (!status && gid_attr.ndev) {
vlan = rdma_vlan_dev_vlan_id(gid_attr.ndev);
- memcpy(smac, IF_LLADDR(gid_attr.ndev), ETH_ALEN);
+ memcpy(smac, if_getlladdr(gid_attr.ndev), ETH_ALEN);
if_rele(gid_attr.ndev);
}
}