Lines Matching +full:smc +full:- +full:id
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Shared Memory Communications over RDMA (SMC-R) and RoCE
5 * Definitions for SMC Connections, Link Groups and Links
16 #include <linux/smc.h>
21 #include "smc.h"
84 struct smc_ib_device *smcibdev; /* ib-device */
85 u8 ibport; /* port - values 1 | 2 */
128 u8 gid[SMC_GID_SIZE];/* gid matching used vlan id*/
129 u8 sgid_index; /* gid index for vlan id */
138 u8 link_uid[SMC_LGR_ID_SIZE]; /* unique lnk id */
156 /* For now we just allow one parallel link per link group. The SMC protocol
170 struct { /* SMC-R */
193 struct { /* SMC-D */
226 enum smcr_buf_type { /* types of SMC-R sndbufs and RMBs */
252 unsigned short vlan_id; /* vlan id of link group */
259 u8 id[SMC_LGR_ID_SIZE]; /* unique lgr id */ member
268 bool is_smcd; /* SMC-R or SMC-D */
275 struct { /* SMC-R */
279 /* smc link */
296 /* pnet id of this lgr */
329 struct { /* SMC-D */
376 /* SMC-R */
387 /* SMC-D */
409 node = lgr->conns_all.rb_node; in smc_lgr_find_conn()
414 if (cur->alert_token_local > token) { in smc_lgr_find_conn()
415 node = node->rb_left; in smc_lgr_find_conn()
417 if (cur->alert_token_local < token) { in smc_lgr_find_conn()
418 node = node->rb_right; in smc_lgr_find_conn()
431 return conn->lgr && conn->alert_token_local; in smc_conn_lgr_valid()
443 if (lnk->state == SMC_LNK_UNUSED || lnk->state == SMC_LNK_INACTIVE) in smc_link_usable()
460 lnk->qp_attr.cur_qp_state == IB_QPS_RTS; in smc_link_sendable()
465 return lnk->state == SMC_LNK_ACTIVE; in smc_link_active()
492 smc_dev->pci_vendor = pci_dev->vendor; in smc_set_pci_values()
493 smc_dev->pci_device = pci_dev->device; in smc_set_pci_values()
494 snprintf(smc_dev->pci_id, sizeof(smc_dev->pci_id), "%s", in smc_set_pci_values()
501 smc_dev->pci_fid = zdev->fid; in smc_set_pci_values()
502 smc_dev->pci_pchid = zdev->pchid; in smc_set_pci_values()
520 int smc_buf_create(struct smc_sock *smc, bool is_smcd);
535 int smc_conn_create(struct smc_sock *smc, struct smc_init_info *ini);
564 return link->lgr; in smc_get_lgr()