Commit e3d017c1 authored by Zhengchao Shao's avatar Zhengchao Shao
Browse files

net/smc: enable smcrv1 when RNIC supports rocev2

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IAFYD8



-----------------------------------------

When the RNIC supports rocev2, smcrv1 can also be used to send
and receive packets.

Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
parent 21ce84da
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -201,8 +201,7 @@ int smc_ib_determine_gid(struct smc_ib_device *smcibdev, u8 ibport,
		if (!IS_ERR(ndev) &&
		    ((!vlan_id && !is_vlan_dev(ndev)) ||
		     (vlan_id && is_vlan_dev(ndev) &&
		      vlan_dev_vlan_id(ndev) == vlan_id)) &&
		    attr->gid_type == IB_GID_TYPE_ROCE) {
		      vlan_dev_vlan_id(ndev) == vlan_id))) {
			rcu_read_unlock();
			if (gid)
				memcpy(gid, &attr->gid, SMC_GID_SIZE);