Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_ethtool.c1108 struct hns3_enet_ring *tmp_rings; in hns3_backup_ringparam() local
1111 tmp_rings = kcalloc(handle->kinfo.num_tqps * 2, in hns3_backup_ringparam()
1113 if (!tmp_rings) in hns3_backup_ringparam()
1117 memcpy(&tmp_rings[i], &priv->ring[i], in hns3_backup_ringparam()
1119 tmp_rings[i].skb = NULL; in hns3_backup_ringparam()
1122 return tmp_rings; in hns3_backup_ringparam()
1239 struct hns3_enet_ring *tmp_rings; in hns3_set_ringparam() local
1255 tmp_rings = hns3_backup_ringparam(priv); in hns3_set_ringparam()
1256 if (!tmp_rings) { in hns3_set_ringparam()
1282 memcpy(&priv->ring[i], &tmp_rings[i], in hns3_set_ringparam()
[all …]