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:
parent
2467ccddc0
commit
8e6654a6a5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user