Home
last modified time | relevance | path

Searched refs:new_pe (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.15/net/smc/
Dsmc_pnet.c344 struct smc_pnetentry *tmp_pe, *new_pe; in smc_pnet_add_eth() local
364 new_pe = kzalloc(sizeof(*new_pe), GFP_KERNEL); in smc_pnet_add_eth()
365 if (!new_pe) in smc_pnet_add_eth()
367 new_pe->type = SMC_PNET_ETH; in smc_pnet_add_eth()
368 memcpy(new_pe->pnet_name, pnet_name, SMC_MAX_PNETID_LEN); in smc_pnet_add_eth()
369 strncpy(new_pe->eth_name, eth_name, IFNAMSIZ); in smc_pnet_add_eth()
370 new_pe->ndev = ndev; in smc_pnet_add_eth()
383 list_add_tail(&new_pe->list, &pnettable->pnetlist); in smc_pnet_add_eth()
387 kfree(new_pe); in smc_pnet_add_eth()
393 new_pe->eth_name, new_pe->pnet_name); in smc_pnet_add_eth()
[all …]