ofed: fix roce gid insertion for vlan interfaces

When attempting to use vlan interface the correct GID
wasn't created due to incorrect ifp validation.

The problem was introduced in
3e142e0767 ('ofed: Mechanically convert to IfAPI)

Signed-off-by: Bartosz Sobczak bartosz.sobczak@intel.com
Signed-off-by: Eric Joyner <erj@FreeBSD.org>

PR:		273043
Sponsored by:	Intel Corporation
Reviewed by:	jhibbits@, erj@
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D41426
This commit is contained in:
Bartosz Sobczak 2023-08-14 08:49:26 -07:00 committed by Eric Joyner
parent 2467ccddc0
commit 8e6654a6a5
No known key found for this signature in database
GPG Key ID: 96F0C6FD61E05DE3

View File

@ -239,7 +239,7 @@ roce_gid_update_addr_callback(struct ib_device *device, u8 port,
if (ifp != ndev) {
if (if_gettype(ifp) != IFT_L2VLAN)
continue;
if (ifp != rdma_vlan_dev_real_dev(ifp))
if (ndev != rdma_vlan_dev_real_dev(ifp))
continue;
}