Home
last modified time | relevance | path

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

/linux-5.19.10/net/smc/
Dsmc_pnet.c346 struct smc_pnetentry *tmp_pe, *new_pe; in smc_pnet_add_eth() local
366 new_pe = kzalloc(sizeof(*new_pe), GFP_KERNEL); in smc_pnet_add_eth()
367 if (!new_pe) in smc_pnet_add_eth()
369 new_pe->type = SMC_PNET_ETH; in smc_pnet_add_eth()
370 memcpy(new_pe->pnet_name, pnet_name, SMC_MAX_PNETID_LEN); in smc_pnet_add_eth()
371 strncpy(new_pe->eth_name, eth_name, IFNAMSIZ); in smc_pnet_add_eth()
384 new_pe->ndev = ndev; in smc_pnet_add_eth()
385 netdev_tracker_alloc(ndev, &new_pe->dev_tracker, in smc_pnet_add_eth()
388 list_add_tail(&new_pe->list, &pnettable->pnetlist); in smc_pnet_add_eth()
392 kfree(new_pe); in smc_pnet_add_eth()
[all …]