net/sfc: introduce flow allocation and free path
[dpdk.git] / drivers / net / ark / ark_ethdev_tx.c
index 94da5f9..2896687 100644 (file)
@@ -42,7 +42,7 @@ struct ark_tx_queue {
        uint32_t pad[1];
 
        /* second cache line - fields only used in slow path */
-       MARKER cacheline1 __rte_cache_min_aligned;
+       RTE_MARKER cacheline1 __rte_cache_min_aligned;
        uint32_t cons_index;            /* hw is done, can be freed */
 } __rte_cache_aligned;
 
@@ -207,13 +207,11 @@ eth_ark_tx_queue_setup(struct rte_eth_dev *dev,
                       unsigned int socket_id,
                       const struct rte_eth_txconf *tx_conf __rte_unused)
 {
-       struct ark_adapter *ark = (struct ark_adapter *)dev->data->dev_private;
+       struct ark_adapter *ark = dev->data->dev_private;
        struct ark_tx_queue *queue;
        int status;
 
-       /* Future: divide the Q's evenly with multi-ports */
-       int port = dev->data->port_id;
-       int qidx = port + queue_idx;
+       int qidx = queue_idx;
 
        if (!rte_is_power_of_2(nb_desc)) {
                PMD_DRV_LOG(ERR,