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"
79 struct smc_ib_device *smcibdev; /* ib-device */
80 u8 ibport; /* port - values 1 | 2 */
116 u8 gid[SMC_GID_SIZE];/* gid matching used vlan id*/
117 u8 sgid_index; /* gid index for vlan id */
126 u8 link_uid[SMC_LGR_ID_SIZE]; /* unique lnk id */
142 /* For now we just allow one parallel link per link group. The SMC protocol
156 struct { /* SMC-R */
174 struct { /* SMC-D */
226 unsigned short vlan_id; /* vlan id of link group */
233 u8 id[SMC_LGR_ID_SIZE]; /* unique lgr id */ member
241 bool is_smcd; /* SMC-R or SMC-D */
248 struct { /* SMC-R */
252 /* smc link */
264 /* pnet id of this lgr */
292 struct { /* SMC-D */
313 /* SMC-R */
319 /* SMC-D */
341 node = lgr->conns_all.rb_node; in smc_lgr_find_conn()
346 if (cur->alert_token_local > token) { in smc_lgr_find_conn()
347 node = node->rb_left; in smc_lgr_find_conn()
349 if (cur->alert_token_local < token) { in smc_lgr_find_conn()
350 node = node->rb_right; in smc_lgr_find_conn()
364 if (lnk->state == SMC_LNK_UNUSED || lnk->state == SMC_LNK_INACTIVE) in smc_link_usable()
371 return lnk->state == SMC_LNK_ACTIVE; in smc_link_active()
398 smc_dev->pci_vendor = pci_dev->vendor; in smc_set_pci_values()
399 smc_dev->pci_device = pci_dev->device; in smc_set_pci_values()
400 snprintf(smc_dev->pci_id, sizeof(smc_dev->pci_id), "%s", in smc_set_pci_values()
407 smc_dev->pci_fid = zdev->fid; in smc_set_pci_values()
408 smc_dev->pci_pchid = zdev->pchid; in smc_set_pci_values()
424 int smc_buf_create(struct smc_sock *smc, bool is_smcd);
441 int smc_conn_create(struct smc_sock *smc, struct smc_init_info *ini);
468 return link->lgr; in smc_get_lgr()