From: Chengwen Feng <[email protected]> Rename socket_id parameters, internal structure fields, variables and comments to the NUMA node terminology, and switch calls to the NUMA-named APIs.
Signed-off-by: Chengwen Feng <[email protected]> --- drivers/baseband/fpga_lte_fec/fpga_lte_fec.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/baseband/fpga_lte_fec/fpga_lte_fec.c b/drivers/baseband/fpga_lte_fec/fpga_lte_fec.c index dc1394930f..27697c9b59 100644 --- a/drivers/baseband/fpga_lte_fec/fpga_lte_fec.c +++ b/drivers/baseband/fpga_lte_fec/fpga_lte_fec.c @@ -475,7 +475,7 @@ print_dma_dec_desc_debug_info(union fpga_dma_desc *desc) #endif static int -fpga_setup_queues(struct rte_bbdev *dev, uint16_t num_queues, int socket_id) +fpga_setup_queues(struct rte_bbdev *dev, uint16_t num_queues, int numa_id) { /* Number of queues bound to a PF/VF */ uint32_t hw_q_num = 0; @@ -536,9 +536,9 @@ fpga_setup_queues(struct rte_bbdev *dev, uint16_t num_queues, int socket_id) RTE_BUILD_BUG_ON((RTE_CACHE_LINE_SIZE % 32) != 0); /* Allocate memory for SW descriptor rings */ - fpga_dev->sw_rings = rte_zmalloc_socket(dev->device->driver->name, + fpga_dev->sw_rings = rte_zmalloc_numa(dev->device->driver->name, num_queues * ring_size, RTE_CACHE_LINE_SIZE, - socket_id); + numa_id); if (fpga_dev->sw_rings == NULL) { rte_bbdev_log(ERR, "Failed to allocate memory for %s:%u sw_rings", @@ -551,8 +551,8 @@ fpga_setup_queues(struct rte_bbdev *dev, uint16_t num_queues, int socket_id) fpga_dev->sw_ring_max_depth = FPGA_RING_MAX_SIZE; /* Allocate memory for ring flush status */ - fpga_dev->flush_queue_status = rte_zmalloc_socket(NULL, - sizeof(uint64_t), RTE_CACHE_LINE_SIZE, socket_id); + fpga_dev->flush_queue_status = rte_zmalloc_numa(NULL, + sizeof(uint64_t), RTE_CACHE_LINE_SIZE, numa_id); if (fpga_dev->flush_queue_status == NULL) { rte_bbdev_log(ERR, "Failed to allocate memory for %s:%u flush_queue_status", @@ -714,8 +714,8 @@ fpga_queue_setup(struct rte_bbdev *dev, uint16_t queue_id, return -1; /* Allocate the queue data structure. */ - q = rte_zmalloc_socket(dev->device->driver->name, sizeof(*q), - RTE_CACHE_LINE_SIZE, conf->socket); + q = rte_zmalloc_numa(dev->device->driver->name, sizeof(*q), + RTE_CACHE_LINE_SIZE, conf->numa_id); if (q == NULL) { /* Mark queue as un-assigned */ d->q_assigned_bit_map &= (0xFFFFFFFF - (1ULL << q_idx)); @@ -732,8 +732,8 @@ fpga_queue_setup(struct rte_bbdev *dev, uint16_t queue_id, (d->sw_ring_size * queue_id); /* Allocate memory for Completion Head variable*/ - q->ring_head_addr = rte_zmalloc_socket(dev->device->driver->name, - sizeof(uint64_t), RTE_CACHE_LINE_SIZE, conf->socket); + q->ring_head_addr = rte_zmalloc_numa(dev->device->driver->name, + sizeof(uint64_t), RTE_CACHE_LINE_SIZE, conf->numa_id); if (q->ring_head_addr == NULL) { /* Mark queue as un-assigned */ d->q_assigned_bit_map &= (0xFFFFFFFF - (1ULL << q_idx)); @@ -2357,7 +2357,7 @@ fpga_lte_fec_probe(struct rte_pci_driver *pci_drv, return -ENODEV; /* allocate device private memory */ - bbdev->data->dev_private = rte_zmalloc_socket(dev_name, + bbdev->data->dev_private = rte_zmalloc_numa(dev_name, sizeof(struct fpga_lte_fec_device), RTE_CACHE_LINE_SIZE, pci_dev->device.numa_node); -- 2.55.0

