linux/net/smc/smc_pnet.c
/* Check if two RDMA device entries are identical. Use device name and port
 * number for comparison.
 */
Check if two RDMA device entries are identical. Use device name and port
number for comparison.
Check if two RDMA device entries are identical . Use device name and port number for comparison .
static bool smc_pnet_same_ibname(struct smc_pnetentry *pnetelem, char *ibname,
				 u8 ibport)
{
	return pnetelem->ib_port == ibport &&
	       !strncmp(pnetelem->smcibdev->ibdev->name, ibname,
			sizeof(pnetelem->smcibdev->ibdev->name));
}
static bool smc_pnet_same_ibname ( struct smc_pnetentry * pnetelem , char * ibname , u8 ibport ) { return pnetelem -> ib_port == ibport && ! strncmp ( pnetelem -> smcibdev -> ibdev -> name , ibname , sizeof ( pnetelem -> smcibdev -> ibdev -> name ) ) ; }
Check if two RDMA device entries are identical.
Check if two RDMA device entries are identical .