|
@@ -551,7 +551,7 @@ static inline int cma_validate_port(struct ib_device *device, u8 port,
|
|
|
if ((dev_type != ARPHRD_INFINIBAND) && rdma_protocol_ib(device, port))
|
|
|
return ret;
|
|
|
|
|
|
- if (dev_type == ARPHRD_ETHER) {
|
|
|
+ if (dev_type == ARPHRD_ETHER && rdma_protocol_roce(device, port)) {
|
|
|
ndev = dev_get_by_index(&init_net, bound_if_index);
|
|
|
if (ndev && ndev->flags & IFF_LOOPBACK) {
|
|
|
pr_info("detected loopback device\n");
|