Show a patch.

GET /api/patches/73392/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 73392,
    "url": "https://patches.dpdk.org/api/patches/73392/",
    "web_url": "https://patches.dpdk.org/patch/73392/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk"
    },
    "msgid": "<20200707092244.12791-13-hemant.agrawal@nxp.com>",
    "date": "2020-07-07T09:22:27",
    "name": "[v2,12/29] drivers: optimize thread local storage for dpaa",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "466f5eb7d9caa3188d94837a8920355915ac8fd7",
    "submitter": {
        "id": 477,
        "url": "https://patches.dpdk.org/api/people/477/",
        "name": "Hemant Agrawal",
        "email": "hemant.agrawal@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "https://patches.dpdk.org/patch/73392/mbox/",
    "series": [
        {
            "id": 10842,
            "url": "https://patches.dpdk.org/api/series/10842/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10842",
            "date": "2020-07-07T09:22:15",
            "name": "NXP DPAAx enhancements",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/10842/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73392/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/73392/checks/",
    "tags": {},
    "headers": {
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Message-Id": "<20200707092244.12791-13-hemant.agrawal@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com,\n\tRohit Raj <rohit.raj@nxp.com>",
        "X-BeenThere": "dev@dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D6245A00C5;\n\tTue,  7 Jul 2020 11:29:15 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A83471DD73;\n\tTue,  7 Jul 2020 11:27:18 +0200 (CEST)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n by dpdk.org (Postfix) with ESMTP id 5AAF21DCE9\n for <dev@dpdk.org>; Tue,  7 Jul 2020 11:27:06 +0200 (CEST)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3C7171A0A4F;\n Tue,  7 Jul 2020 11:27:06 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 54BD51A0A30;\n Tue,  7 Jul 2020 11:27:04 +0200 (CEST)",
            "from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net\n [10.232.133.63])\n by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 191EE402FA;\n Tue,  7 Jul 2020 17:27:02 +0800 (SGT)"
        ],
        "Subject": "[dpdk-dev] [PATCH v2 12/29] drivers: optimize thread local storage\n\tfor dpaa",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "In-Reply-To": "<20200707092244.12791-1-hemant.agrawal@nxp.com>",
        "Precedence": "list",
        "From": "Hemant Agrawal <hemant.agrawal@nxp.com>",
        "References": "<20200527132326.1382-1-hemant.agrawal@nxp.com>\n <20200707092244.12791-1-hemant.agrawal@nxp.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Date": "Tue,  7 Jul 2020 14:52:27 +0530",
        "X-Mailman-Version": "2.1.15",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>"
    },
    "content": "From: Rohit Raj <rohit.raj@nxp.com>\n\nMinimize the number of different thread variables\n\nAdd all the thread specific variables in dpaa_portal\nstructure to optimize TLS Usage.\n\nSigned-off-by: Rohit Raj <rohit.raj@nxp.com>\nAcked-by: Akhil Goyal <akhil.goyal@nxp.com>\n---\n doc/guides/rel_notes/release_20_08.rst    |  6 ++++\n drivers/bus/dpaa/dpaa_bus.c               | 24 ++++++-------\n drivers/bus/dpaa/rte_bus_dpaa_version.map |  1 -\n drivers/bus/dpaa/rte_dpaa_bus.h           | 42 ++++++++++++++---------\n drivers/crypto/dpaa_sec/dpaa_sec.c        | 11 +++---\n drivers/event/dpaa/dpaa_eventdev.c        |  4 +--\n drivers/mempool/dpaa/dpaa_mempool.c       |  6 ++--\n drivers/net/dpaa/dpaa_ethdev.c            |  2 +-\n drivers/net/dpaa/dpaa_rxtx.c              |  4 +--\n 9 files changed, 54 insertions(+), 46 deletions(-)",
    "diff": "diff --git a/doc/guides/rel_notes/release_20_08.rst b/doc/guides/rel_notes/release_20_08.rst\nindex d915fce12..b1e039d03 100644\n--- a/doc/guides/rel_notes/release_20_08.rst\n+++ b/doc/guides/rel_notes/release_20_08.rst\n@@ -119,6 +119,12 @@ New Features\n   See the :doc:`../sample_app_ug/l2_forward_real_virtual` for more\n   details of this parameter usage.\n \n+* **Updated NXP dpaa ethdev PMD.**\n+\n+  Updated the NXP dpaa ethdev  with new features and improvements, including:\n+\n+  * Added support to use datapath APIs from non-EAL pthread\n+\n * **Updated NXP dpaa2 ethdev PMD.**\n \n   Updated the NXP dpaa2 ethdev  with new features and improvements, including:\ndiff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c\nindex 6770fbc52..aa906c34e 100644\n--- a/drivers/bus/dpaa/dpaa_bus.c\n+++ b/drivers/bus/dpaa/dpaa_bus.c\n@@ -52,8 +52,7 @@ unsigned int dpaa_svr_family;\n \n #define FSL_DPAA_BUS_NAME\tdpaa_bus\n \n-RTE_DEFINE_PER_LCORE(bool, dpaa_io);\n-RTE_DEFINE_PER_LCORE(struct dpaa_portal_dqrr, held_bufs);\n+RTE_DEFINE_PER_LCORE(struct dpaa_portal *, dpaa_io);\n \n struct fm_eth_port_cfg *\n dpaa_get_eth_port_cfg(int dev_id)\n@@ -253,7 +252,6 @@ int rte_dpaa_portal_init(void *arg)\n {\n \tunsigned int cpu, lcore = rte_lcore_id();\n \tint ret;\n-\tstruct dpaa_portal *dpaa_io_portal;\n \n \tBUS_INIT_FUNC_TRACE();\n \n@@ -288,20 +286,21 @@ int rte_dpaa_portal_init(void *arg)\n \tDPAA_BUS_LOG(DEBUG, \"QMAN thread initialized - CPU=%d lcore=%d\",\n \t\t     cpu, lcore);\n \n-\tdpaa_io_portal = rte_malloc(NULL, sizeof(struct dpaa_portal),\n+\tDPAA_PER_LCORE_PORTAL = rte_malloc(NULL, sizeof(struct dpaa_portal),\n \t\t\t\t    RTE_CACHE_LINE_SIZE);\n-\tif (!dpaa_io_portal) {\n+\tif (!DPAA_PER_LCORE_PORTAL) {\n \t\tDPAA_BUS_LOG(ERR, \"Unable to allocate memory\");\n \t\tbman_thread_finish();\n \t\tqman_thread_finish();\n \t\treturn -ENOMEM;\n \t}\n \n-\tdpaa_io_portal->qman_idx = qman_get_portal_index();\n-\tdpaa_io_portal->bman_idx = bman_get_portal_index();\n-\tdpaa_io_portal->tid = syscall(SYS_gettid);\n+\tDPAA_PER_LCORE_PORTAL->qman_idx = qman_get_portal_index();\n+\tDPAA_PER_LCORE_PORTAL->bman_idx = bman_get_portal_index();\n+\tDPAA_PER_LCORE_PORTAL->tid = syscall(SYS_gettid);\n \n-\tret = pthread_setspecific(dpaa_portal_key, (void *)dpaa_io_portal);\n+\tret = pthread_setspecific(dpaa_portal_key,\n+\t\t\t\t  (void *)DPAA_PER_LCORE_PORTAL);\n \tif (ret) {\n \t\tDPAA_BUS_LOG(ERR, \"pthread_setspecific failed on core %u\"\n \t\t\t     \" (lcore=%u) with ret: %d\", cpu, lcore, ret);\n@@ -310,8 +309,6 @@ int rte_dpaa_portal_init(void *arg)\n \t\treturn ret;\n \t}\n \n-\tRTE_PER_LCORE(dpaa_io) = true;\n-\n \tDPAA_BUS_LOG(DEBUG, \"QMAN thread initialized\");\n \n \treturn 0;\n@@ -324,7 +321,7 @@ rte_dpaa_portal_fq_init(void *arg, struct qman_fq *fq)\n \tu32 sdqcr;\n \tint ret;\n \n-\tif (unlikely(!RTE_PER_LCORE(dpaa_io))) {\n+\tif (unlikely(!DPAA_PER_LCORE_PORTAL)) {\n \t\tret = rte_dpaa_portal_init(arg);\n \t\tif (ret < 0) {\n \t\t\tDPAA_BUS_LOG(ERR, \"portal initialization failure\");\n@@ -367,8 +364,7 @@ dpaa_portal_finish(void *arg)\n \n \trte_free(dpaa_io_portal);\n \tdpaa_io_portal = NULL;\n-\n-\tRTE_PER_LCORE(dpaa_io) = false;\n+\tDPAA_PER_LCORE_PORTAL = NULL;\n }\n \n static int\ndiff --git a/drivers/bus/dpaa/rte_bus_dpaa_version.map b/drivers/bus/dpaa/rte_bus_dpaa_version.map\nindex 8069b05af..2defa7992 100644\n--- a/drivers/bus/dpaa/rte_bus_dpaa_version.map\n+++ b/drivers/bus/dpaa/rte_bus_dpaa_version.map\n@@ -48,7 +48,6 @@ INTERNAL {\n \tnetcfg_acquire;\n \tnetcfg_release;\n \tper_lcore_dpaa_io;\n-\tper_lcore_held_bufs;\n \tqman_alloc_cgrid_range;\n \tqman_alloc_pool_range;\n \tqman_clear_irq;\ndiff --git a/drivers/bus/dpaa/rte_dpaa_bus.h b/drivers/bus/dpaa/rte_dpaa_bus.h\nindex 2a186d83f..25aff2d30 100644\n--- a/drivers/bus/dpaa/rte_dpaa_bus.h\n+++ b/drivers/bus/dpaa/rte_dpaa_bus.h\n@@ -35,8 +35,6 @@\n \n extern unsigned int dpaa_svr_family;\n \n-extern RTE_DEFINE_PER_LCORE(bool, dpaa_io);\n-\n struct rte_dpaa_device;\n struct rte_dpaa_driver;\n \n@@ -90,12 +88,38 @@ struct rte_dpaa_driver {\n \trte_dpaa_remove_t remove;\n };\n \n+/* Create storage for dqrr entries per lcore */\n+#define DPAA_PORTAL_DEQUEUE_DEPTH\t16\n+struct dpaa_portal_dqrr {\n+\tvoid *mbuf[DPAA_PORTAL_DEQUEUE_DEPTH];\n+\tuint64_t dqrr_held;\n+\tuint8_t dqrr_size;\n+};\n+\n struct dpaa_portal {\n \tuint32_t bman_idx; /**< BMAN Portal ID*/\n \tuint32_t qman_idx; /**< QMAN Portal ID*/\n+\tstruct dpaa_portal_dqrr dpaa_held_bufs;\n+\tstruct rte_crypto_op **dpaa_sec_ops;\n+\tint dpaa_sec_op_nb;\n \tuint64_t tid;/**< Parent Thread id for this portal */\n };\n \n+RTE_DECLARE_PER_LCORE(struct dpaa_portal *, dpaa_io);\n+\n+#define DPAA_PER_LCORE_PORTAL \\\n+\tRTE_PER_LCORE(dpaa_io)\n+#define DPAA_PER_LCORE_DQRR_SIZE \\\n+\tRTE_PER_LCORE(dpaa_io)->dpaa_held_bufs.dqrr_size\n+#define DPAA_PER_LCORE_DQRR_HELD \\\n+\tRTE_PER_LCORE(dpaa_io)->dpaa_held_bufs.dqrr_held\n+#define DPAA_PER_LCORE_DQRR_MBUF(i) \\\n+\tRTE_PER_LCORE(dpaa_io)->dpaa_held_bufs.mbuf[i]\n+#define DPAA_PER_LCORE_RTE_CRYPTO_OP \\\n+\tRTE_PER_LCORE(dpaa_io)->dpaa_sec_ops\n+#define DPAA_PER_LCORE_DPAA_SEC_OP_NB \\\n+\tRTE_PER_LCORE(dpaa_io)->dpaa_sec_op_nb\n+\n /* Various structures representing contiguous memory maps */\n struct dpaa_memseg {\n \tTAILQ_ENTRY(dpaa_memseg) next;\n@@ -200,20 +224,6 @@ RTE_INIT(dpaainitfn_ ##nm) \\\n } \\\n RTE_PMD_EXPORT_NAME(nm, __COUNTER__)\n \n-/* Create storage for dqrr entries per lcore */\n-#define DPAA_PORTAL_DEQUEUE_DEPTH\t16\n-struct dpaa_portal_dqrr {\n-\tvoid *mbuf[DPAA_PORTAL_DEQUEUE_DEPTH];\n-\tuint64_t dqrr_held;\n-\tuint8_t dqrr_size;\n-};\n-\n-RTE_DECLARE_PER_LCORE(struct dpaa_portal_dqrr, held_bufs);\n-\n-#define DPAA_PER_LCORE_DQRR_SIZE       RTE_PER_LCORE(held_bufs).dqrr_size\n-#define DPAA_PER_LCORE_DQRR_HELD       RTE_PER_LCORE(held_bufs).dqrr_held\n-#define DPAA_PER_LCORE_DQRR_MBUF(i)    RTE_PER_LCORE(held_bufs).mbuf[i]\n-\n __rte_internal\n struct fm_eth_port_cfg *dpaa_get_eth_port_cfg(int dev_id);\n \ndiff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c\nindex d9fa8bb36..8fcd57373 100644\n--- a/drivers/crypto/dpaa_sec/dpaa_sec.c\n+++ b/drivers/crypto/dpaa_sec/dpaa_sec.c\n@@ -45,9 +45,6 @@\n \n static uint8_t cryptodev_driver_id;\n \n-static __thread struct rte_crypto_op **dpaa_sec_ops;\n-static __thread int dpaa_sec_op_nb;\n-\n static int\n dpaa_sec_attach_sess_q(struct dpaa_sec_qp *qp, dpaa_sec_session *sess);\n \n@@ -143,7 +140,7 @@ dqrr_out_fq_cb_rx(struct qman_portal *qm __always_unused,\n \tstruct dpaa_sec_job *job;\n \tstruct dpaa_sec_op_ctx *ctx;\n \n-\tif (dpaa_sec_op_nb >= DPAA_SEC_BURST)\n+\tif (DPAA_PER_LCORE_DPAA_SEC_OP_NB >= DPAA_SEC_BURST)\n \t\treturn qman_cb_dqrr_defer;\n \n \tif (!(dqrr->stat & QM_DQRR_STAT_FD_VALID))\n@@ -174,7 +171,7 @@ dqrr_out_fq_cb_rx(struct qman_portal *qm __always_unused,\n \t\t}\n \t\tmbuf->data_len = len;\n \t}\n-\tdpaa_sec_ops[dpaa_sec_op_nb++] = ctx->op;\n+\tDPAA_PER_LCORE_RTE_CRYPTO_OP[DPAA_PER_LCORE_DPAA_SEC_OP_NB++] = ctx->op;\n \tdpaa_sec_op_ending(ctx);\n \n \treturn qman_cb_dqrr_consume;\n@@ -2301,7 +2298,7 @@ dpaa_sec_attach_sess_q(struct dpaa_sec_qp *qp, dpaa_sec_session *sess)\n \t\tDPAA_SEC_ERR(\"Unable to prepare sec cdb\");\n \t\treturn ret;\n \t}\n-\tif (unlikely(!RTE_PER_LCORE(dpaa_io))) {\n+\tif (unlikely(!DPAA_PER_LCORE_PORTAL)) {\n \t\tret = rte_dpaa_portal_init((void *)0);\n \t\tif (ret) {\n \t\t\tDPAA_SEC_ERR(\"Failure in affining portal\");\n@@ -3463,7 +3460,7 @@ cryptodev_dpaa_sec_probe(struct rte_dpaa_driver *dpaa_drv __rte_unused,\n \t\t}\n \t}\n \n-\tif (unlikely(!RTE_PER_LCORE(dpaa_io))) {\n+\tif (unlikely(!DPAA_PER_LCORE_PORTAL)) {\n \t\tretval = rte_dpaa_portal_init((void *)1);\n \t\tif (retval) {\n \t\t\tDPAA_SEC_ERR(\"Unable to initialize portal\");\ndiff --git a/drivers/event/dpaa/dpaa_eventdev.c b/drivers/event/dpaa/dpaa_eventdev.c\nindex e78728b7e..a3c138b7a 100644\n--- a/drivers/event/dpaa/dpaa_eventdev.c\n+++ b/drivers/event/dpaa/dpaa_eventdev.c\n@@ -179,7 +179,7 @@ dpaa_event_dequeue_burst(void *port, struct rte_event ev[],\n \tstruct dpaa_port *portal = (struct dpaa_port *)port;\n \tstruct rte_mbuf *mbuf;\n \n-\tif (unlikely(!RTE_PER_LCORE(dpaa_io))) {\n+\tif (unlikely(!DPAA_PER_LCORE_PORTAL)) {\n \t\t/* Affine current thread context to a qman portal */\n \t\tret = rte_dpaa_portal_init((void *)0);\n \t\tif (ret) {\n@@ -251,7 +251,7 @@ dpaa_event_dequeue_burst_intr(void *port, struct rte_event ev[],\n \tstruct dpaa_port *portal = (struct dpaa_port *)port;\n \tstruct rte_mbuf *mbuf;\n \n-\tif (unlikely(!RTE_PER_LCORE(dpaa_io))) {\n+\tif (unlikely(!DPAA_PER_LCORE_PORTAL)) {\n \t\t/* Affine current thread context to a qman portal */\n \t\tret = rte_dpaa_portal_init((void *)0);\n \t\tif (ret) {\ndiff --git a/drivers/mempool/dpaa/dpaa_mempool.c b/drivers/mempool/dpaa/dpaa_mempool.c\nindex 8d1da8028..e6b06f057 100644\n--- a/drivers/mempool/dpaa/dpaa_mempool.c\n+++ b/drivers/mempool/dpaa/dpaa_mempool.c\n@@ -53,7 +53,7 @@ dpaa_mbuf_create_pool(struct rte_mempool *mp)\n \n \tMEMPOOL_INIT_FUNC_TRACE();\n \n-\tif (unlikely(!RTE_PER_LCORE(dpaa_io))) {\n+\tif (unlikely(!DPAA_PER_LCORE_PORTAL)) {\n \t\tret = rte_dpaa_portal_init((void *)0);\n \t\tif (ret) {\n \t\t\tDPAA_MEMPOOL_ERR(\n@@ -169,7 +169,7 @@ dpaa_mbuf_free_bulk(struct rte_mempool *pool,\n \tDPAA_MEMPOOL_DPDEBUG(\"Request to free %d buffers in bpid = %d\",\n \t\t\t     n, bp_info->bpid);\n \n-\tif (unlikely(!RTE_PER_LCORE(dpaa_io))) {\n+\tif (unlikely(!DPAA_PER_LCORE_PORTAL)) {\n \t\tret = rte_dpaa_portal_init((void *)0);\n \t\tif (ret) {\n \t\t\tDPAA_MEMPOOL_ERR(\"rte_dpaa_portal_init failed with ret: %d\",\n@@ -224,7 +224,7 @@ dpaa_mbuf_alloc_bulk(struct rte_mempool *pool,\n \t\treturn -1;\n \t}\n \n-\tif (unlikely(!RTE_PER_LCORE(dpaa_io))) {\n+\tif (unlikely(!DPAA_PER_LCORE_PORTAL)) {\n \t\tret = rte_dpaa_portal_init((void *)0);\n \t\tif (ret) {\n \t\t\tDPAA_MEMPOOL_ERR(\"rte_dpaa_portal_init failed with ret: %d\",\ndiff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c\nindex 6c94fd396..c9f828a7c 100644\n--- a/drivers/net/dpaa/dpaa_ethdev.c\n+++ b/drivers/net/dpaa/dpaa_ethdev.c\n@@ -1707,7 +1707,7 @@ rte_dpaa_probe(struct rte_dpaa_driver *dpaa_drv __rte_unused,\n \t\tis_global_init = 1;\n \t}\n \n-\tif (unlikely(!RTE_PER_LCORE(dpaa_io))) {\n+\tif (unlikely(!DPAA_PER_LCORE_PORTAL)) {\n \t\tret = rte_dpaa_portal_init((void *)1);\n \t\tif (ret) {\n \t\t\tDPAA_PMD_ERR(\"Unable to initialize portal\");\ndiff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c\nindex 819cad7c6..5303c9b76 100644\n--- a/drivers/net/dpaa/dpaa_rxtx.c\n+++ b/drivers/net/dpaa/dpaa_rxtx.c\n@@ -670,7 +670,7 @@ uint16_t dpaa_eth_queue_rx(void *q,\n \tif (likely(fq->is_static))\n \t\treturn dpaa_eth_queue_portal_rx(fq, bufs, nb_bufs);\n \n-\tif (unlikely(!RTE_PER_LCORE(dpaa_io))) {\n+\tif (unlikely(!DPAA_PER_LCORE_PORTAL)) {\n \t\tret = rte_dpaa_portal_init((void *)0);\n \t\tif (ret) {\n \t\t\tDPAA_PMD_ERR(\"Failure in affining portal\");\n@@ -970,7 +970,7 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs)\n \tint ret, realloc_mbuf = 0;\n \tuint32_t seqn, index, flags[DPAA_TX_BURST_SIZE] = {0};\n \n-\tif (unlikely(!RTE_PER_LCORE(dpaa_io))) {\n+\tif (unlikely(!DPAA_PER_LCORE_PORTAL)) {\n \t\tret = rte_dpaa_portal_init((void *)0);\n \t\tif (ret) {\n \t\t\tDPAA_PMD_ERR(\"Failure in affining portal\");\n",
    "prefixes": [
        "v2",
        "12/29"
    ]
}