net/smc: use correct vlan gid of RoCE device
SMC code uses the base gid for VLAN traffic. The gids exchanged in the CLC handshake and the gid index used for the QP have to switch from the base gid to the appropriate vlan gid. When searching for a matching IB device port for a certain vlan device, it does not make sense to return an IB device port, which is not enabled for the used vlan_id. Add another check whether a vlan gid exists for a certain IB device port. Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

orang tua
947541f36c
melakukan
7005ada68d
@@ -38,7 +38,7 @@ enum smc_llc_msg_type {
|
||||
/* transmit */
|
||||
int smc_llc_send_confirm_link(struct smc_link *lnk,
|
||||
enum smc_llc_reqresp reqresp);
|
||||
int smc_llc_send_add_link(struct smc_link *link, u8 mac[], union ib_gid *gid,
|
||||
int smc_llc_send_add_link(struct smc_link *link, u8 mac[], u8 gid[],
|
||||
enum smc_llc_reqresp reqresp);
|
||||
int smc_llc_send_delete_link(struct smc_link *link,
|
||||
enum smc_llc_reqresp reqresp);
|
||||
|
Reference in New Issue
Block a user