net/hns3: refactor multi-process initialization
[dpdk.git] / drivers / baseband / acc100 / rte_acc100_pmd.c
index 2e9ce92..1c6080f 100644 (file)
@@ -720,8 +720,8 @@ acc100_intr_enable(struct rte_bbdev *dev)
        struct acc100_device *d = dev->data->dev_private;
 
        /* Only MSI are currently supported */
-       if (dev->intr_handle->type == RTE_INTR_HANDLE_VFIO_MSI ||
-                       dev->intr_handle->type == RTE_INTR_HANDLE_UIO) {
+       if (rte_intr_type_get(dev->intr_handle) == RTE_INTR_HANDLE_VFIO_MSI ||
+                       rte_intr_type_get(dev->intr_handle) == RTE_INTR_HANDLE_UIO) {
 
                ret = allocate_info_ring(dev);
                if (ret < 0) {
@@ -1089,6 +1089,7 @@ acc100_dev_info_get(struct rte_bbdev *dev,
 #else
        dev_info->harq_buffer_size = 0;
 #endif
+       dev_info->data_endianness = RTE_LITTLE_ENDIAN;
        acc100_check_ir(d);
 }
 
@@ -1097,8 +1098,8 @@ acc100_queue_intr_enable(struct rte_bbdev *dev, uint16_t queue_id)
 {
        struct acc100_queue *q = dev->data->queues[queue_id].queue_private;
 
-       if (dev->intr_handle->type != RTE_INTR_HANDLE_VFIO_MSI &&
-                       dev->intr_handle->type != RTE_INTR_HANDLE_UIO)
+       if (rte_intr_type_get(dev->intr_handle) != RTE_INTR_HANDLE_VFIO_MSI &&
+                       rte_intr_type_get(dev->intr_handle) != RTE_INTR_HANDLE_UIO)
                return -ENOTSUP;
 
        q->irq_enable = 1;
@@ -1110,8 +1111,8 @@ acc100_queue_intr_disable(struct rte_bbdev *dev, uint16_t queue_id)
 {
        struct acc100_queue *q = dev->data->queues[queue_id].queue_private;
 
-       if (dev->intr_handle->type != RTE_INTR_HANDLE_VFIO_MSI &&
-                       dev->intr_handle->type != RTE_INTR_HANDLE_UIO)
+       if (rte_intr_type_get(dev->intr_handle) != RTE_INTR_HANDLE_VFIO_MSI &&
+                       rte_intr_type_get(dev->intr_handle) != RTE_INTR_HANDLE_UIO)
                return -ENOTSUP;
 
        q->irq_enable = 0;
@@ -1749,7 +1750,7 @@ acc100_dma_desc_td_fill(struct rte_bbdev_dec_op *op,
 
        next_triplet = acc100_dma_fill_blk_type_out(
                        desc, h_output, *h_out_offset,
-                       k >> 3, next_triplet,
+                       (k - crc24_overlap) >> 3, next_triplet,
                        ACC100_DMA_BLKID_OUT_HARD);
        if (unlikely(next_triplet < 0)) {
                rte_bbdev_log(ERR,
@@ -4184,7 +4185,7 @@ static int acc100_pci_probe(struct rte_pci_driver *pci_drv,
 
        /* Fill HW specific part of device structure */
        bbdev->device = &pci_dev->device;
-       bbdev->intr_handle = &pci_dev->intr_handle;
+       bbdev->intr_handle = pci_dev->intr_handle;
        bbdev->data->socket_id = pci_dev->device.numa_node;
 
        /* Invoke ACC100 device initialization function */