linux/net/smc/smc_pnet.c
/* Convert an smc_pnetentry to a netlink attribute sequence */
Convert an smc_pnetentry to a netlink attribute sequence
Convert an smc_pnetentry to a netlink attribute sequence
static int smc_pnet_set_nla(struct sk_buff *msg, struct smc_pnetentry *pnetelem)
{
	if (nla_put_string(msg, SMC_PNETID_NAME, pnetelem->pnet_name) ||
	    nla_put_string(msg, SMC_PNETID_ETHNAME, pnetelem->ndev->name) ||
	    nla_put_string(msg, SMC_PNETID_IBNAME,
			   pnetelem->smcibdev->ibdev->name) ||
	    nla_put_u8(msg, SMC_PNETID_IBPORT, pnetelem->ib_port))
		return -1;
	return 0;
}
static int smc_pnet_set_nla ( struct sk_buff * msg , struct smc_pnetentry * pnetelem ) { if ( nla_put_string ( msg , SMC_PNETID_NAME , pnetelem -> pnet_name ) || nla_put_string ( msg , SMC_PNETID_ETHNAME , pnetelem -> ndev -> name ) || nla_put_string ( msg , SMC_PNETID_IBNAME , pnetelem -> smcibdev -> ibdev -> name ) || nla_put_u8 ( msg , SMC_PNETID_IBPORT , pnetelem -> ib_port ) ) return -1 ; return 0 ; }
Convert an smc_pnetentry to a netlink attribute sequence
Convert an smc_pnetentry to a netlink attribute sequence