Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c1088 struct hns3_enet_ring *tmp_rings; in hns3_backup_ringparam() local
1091 tmp_rings = kcalloc(handle->kinfo.num_tqps * 2, in hns3_backup_ringparam()
1093 if (!tmp_rings) in hns3_backup_ringparam()
1097 memcpy(&tmp_rings[i], &priv->ring[i], in hns3_backup_ringparam()
1099 tmp_rings[i].skb = NULL; in hns3_backup_ringparam()
1102 return tmp_rings; in hns3_backup_ringparam()
1219 struct hns3_enet_ring *tmp_rings; in hns3_set_ringparam() local
1235 tmp_rings = hns3_backup_ringparam(priv); in hns3_set_ringparam()
1236 if (!tmp_rings) { in hns3_set_ringparam()
1262 memcpy(&priv->ring[i], &tmp_rings[i], in hns3_set_ringparam()
[all …]