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"
27 * also is the default value for SMC-R v1 and v2.0
30 * SMC-R v2.1 and later negotiation, vendors or
32 * 16-255 as needed.
93 struct smc_ib_device *smcibdev; /* ib-device */
94 u8 ibport; /* port - values 1 | 2 */
143 u8 gid[SMC_GID_SIZE];/* gid matching used vlan id*/
144 u8 sgid_index; /* gid index for vlan id */
153 u8 link_uid[SMC_LGR_ID_SIZE]; /* unique lnk id */
171 /* For now we just allow one parallel link per link group. The SMC protocol
178 * default value for smc-r v1.0 and v2.0
181 * SMC-R v2.1 and later negotiation, vendors or
183 * 1-2 as needed.
194 struct { /* SMC-R */
217 struct { /* SMC-D */
250 enum smcr_buf_type { /* types of SMC-R sndbufs and RMBs */
276 unsigned short vlan_id; /* vlan id of link group */
283 u8 id[SMC_LGR_ID_SIZE]; /* unique lgr id */ member
292 bool is_smcd; /* SMC-R or SMC-D */
299 struct { /* SMC-R */
303 /* smc link */
320 /* pnet id of this lgr */
357 struct { /* SMC-D */
407 /* SMC-R */
418 /* SMC-D */
440 node = lgr->conns_all.rb_node; in smc_lgr_find_conn()
445 if (cur->alert_token_local > token) { in smc_lgr_find_conn()
446 node = node->rb_left; in smc_lgr_find_conn()
448 if (cur->alert_token_local < token) { in smc_lgr_find_conn()
449 node = node->rb_right; in smc_lgr_find_conn()
462 return conn->lgr && conn->alert_token_local; in smc_conn_lgr_valid()
474 if (lnk->state == SMC_LNK_UNUSED || lnk->state == SMC_LNK_INACTIVE) in smc_link_usable()
491 lnk->qp_attr.cur_qp_state == IB_QPS_RTS; in smc_link_sendable()
496 return lnk->state == SMC_LNK_ACTIVE; in smc_link_active()
523 smc_dev->pci_vendor = pci_dev->vendor; in smc_set_pci_values()
524 smc_dev->pci_device = pci_dev->device; in smc_set_pci_values()
525 snprintf(smc_dev->pci_id, sizeof(smc_dev->pci_id), "%s", in smc_set_pci_values()
532 smc_dev->pci_fid = zdev->fid; in smc_set_pci_values()
533 smc_dev->pci_pchid = zdev->pchid; in smc_set_pci_values()
551 int smc_buf_create(struct smc_sock *smc, bool is_smcd);
566 int smc_conn_create(struct smc_sock *smc, struct smc_init_info *ini);
594 return link->lgr; in smc_get_lgr()