get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 138019,
    "url": "https://patches.dpdk.org/api/patches/138019/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20240306122445.4350-8-shaibran@amazon.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "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",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20240306122445.4350-8-shaibran@amazon.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240306122445.4350-8-shaibran@amazon.com",
    "date": "2024-03-06T12:24:19",
    "name": "[v3,07/33] net/ena: restructure the llq policy setting process",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e66a5fa3bb0ba5e45636d4463030965cb2150627",
    "submitter": {
        "id": 2930,
        "url": "https://patches.dpdk.org/api/people/2930/?format=api",
        "name": "Brandes, Shai",
        "email": "shaibran@amazon.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20240306122445.4350-8-shaibran@amazon.com/mbox/",
    "series": [
        {
            "id": 31397,
            "url": "https://patches.dpdk.org/api/series/31397/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=31397",
            "date": "2024-03-06T12:24:13",
            "name": "net/ena: v2.9.0 driver release",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/31397/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/138019/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/138019/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id B367343C5B;\n\tWed,  6 Mar 2024 13:25:40 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 871CC42E1D;\n\tWed,  6 Mar 2024 13:25:09 +0100 (CET)",
            "from smtp-fw-52005.amazon.com (smtp-fw-52005.amazon.com\n [52.119.213.156])\n by mails.dpdk.org (Postfix) with ESMTP id 8194742E0C\n for <dev@dpdk.org>; Wed,  6 Mar 2024 13:25:07 +0100 (CET)",
            "from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO\n smtpout.prod.us-east-1.prod.farcaster.email.amazon.dev) ([10.43.8.6])\n by smtp-border-fw-52005.iad7.amazon.com with\n ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2024 12:25:06 +0000",
            "from EX19MTAEUC001.ant.amazon.com [10.0.10.100:23206]\n by smtpin.naws.eu-west-1.prod.farcaster.email.amazon.dev [10.0.42.5:2525]\n with\n esmtp (Farcaster)\n id aa050950-ebb8-4a0f-a375-a6d3310df0d0; Wed, 6 Mar 2024 12:25:05 +0000 (UTC)",
            "from EX19D007EUB001.ant.amazon.com (10.252.51.82) by\n EX19MTAEUC001.ant.amazon.com (10.252.51.193) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1258.28; Wed, 6 Mar 2024 12:25:04 +0000",
            "from EX19MTAUWA001.ant.amazon.com (10.250.64.204) by\n EX19D007EUB001.ant.amazon.com (10.252.51.82) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1258.28; Wed, 6 Mar 2024 12:25:04 +0000",
            "from HFA15-CG15235BS.amazon.com (10.1.213.21) by\n mail-relay.amazon.com (10.250.64.204) with Microsoft SMTP Server id\n 15.2.1258.28 via Frontend Transport; Wed, 6 Mar 2024 12:25:03 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209;\n t=1709727908; x=1741263908;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version;\n bh=7UQSSDqmdKSBNgDIXGO9tixo5/teodTwfbvGYd1BFa0=;\n b=YGek1qq4JY2zavp+0TON1H1uepbif//y5oIo5266YW+80baJql9iBQoW\n wvfqh0iRf+6FtDtqhF4Cd2AIBMlhybUeblf+yuFlm49d3IiQr5l74JB7K\n 5HnSPadI3k5ECzm2ubm3zvYOTxqZpj6ud8nxIo7BI0TtVPLTE/qvK/yFp E=;",
        "X-IronPort-AV": "E=Sophos;i=\"6.06,208,1705363200\"; d=\"scan'208\";a=\"638961940\"",
        "X-Farcaster-Flow-ID": "aa050950-ebb8-4a0f-a375-a6d3310df0d0",
        "From": "<shaibran@amazon.com>",
        "To": "<ferruh.yigit@amd.com>",
        "CC": "<dev@dpdk.org>, Shai Brandes <shaibran@amazon.com>",
        "Subject": "[PATCH v3 07/33] net/ena: restructure the llq policy setting process",
        "Date": "Wed, 6 Mar 2024 14:24:19 +0200",
        "Message-ID": "<20240306122445.4350-8-shaibran@amazon.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20240306122445.4350-1-shaibran@amazon.com>",
        "References": "<20240306122445.4350-1-shaibran@amazon.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "From: Shai Brandes <shaibran@amazon.com>\n\nThe driver will set the size of the LLQ header size according to the\nrecommendation from the device.\nReplaced `enable_llq` and `large_llq_hdr` devargs with\na new devarg `llq_policy` that accepts the following values:\n0 - Disable LLQ.\n    Use with extreme caution as it leads to a huge performance\n    degradation on AWS instances from 6th generation onwards.\n1 - Accept device recommended LLQ policy (Default).\n    Device can recommend normal or large LLQ policy.\n2 - Enforce normal LLQ policy.\n3 - Enforce large LLQ policy.\n    Required for packets with header that exceed 96 bytes on\n    AWS instances prior to 5th generation.\n\nSigned-off-by: Shai Brandes <shaibran@amazon.com>\nReviewed-by: Amit Bernstein <amitbern@amazon.com>\n---\n doc/guides/nics/ena.rst                |  21 ++---\n doc/guides/rel_notes/release_24_03.rst |   1 +\n drivers/net/ena/ena_ethdev.c           | 110 +++++++++++++------------\n drivers/net/ena/ena_ethdev.h           |  11 ++-\n 4 files changed, 77 insertions(+), 66 deletions(-)",
    "diff": "diff --git a/doc/guides/nics/ena.rst b/doc/guides/nics/ena.rst\nindex b039e75ead..53c9341859 100644\n--- a/doc/guides/nics/ena.rst\n+++ b/doc/guides/nics/ena.rst\n@@ -107,11 +107,15 @@ Configuration\n Runtime Configuration\n ^^^^^^^^^^^^^^^^^^^^^\n \n-   * **large_llq_hdr** (default 0)\n+   * **llq_policy** (default 1)\n \n-     Enables or disables usage of large LLQ headers. This option will have\n-     effect only if the device also supports large LLQ headers. Otherwise, the\n-     default value will be used.\n+     Controls whether use device recommended header policy or override it.\n+     0 - Disable LLQ.\n+         **Use with extreme caution as it leads to a huge performance\n+         degradation on AWS instances from 6th generation onwards.**\n+     1 - Accept device recommended LLQ policy (Default).\n+     2 - Enforce normal LLQ policy.\n+     3 - Enforce large LLQ policy.\n \n    * **miss_txc_to** (default 5)\n \n@@ -122,15 +126,6 @@ Runtime Configuration\n      timer service. Setting this parameter to 0 disables this feature. Maximum\n      allowed value is 60 seconds.\n \n-   * **enable_llq** (default 1)\n-\n-     Determines whenever the driver should use the LLQ (if it's available) or\n-     not.\n-\n-     **NOTE: On the 6th generation AWS instances disabling LLQ may lead to a\n-     huge performance degradation. In general disabling LLQ is highly not\n-     recommended!**\n-\n ENA Configuration Parameters\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n \ndiff --git a/doc/guides/rel_notes/release_24_03.rst b/doc/guides/rel_notes/release_24_03.rst\nindex 6b73d4fedf..2a22bb07ed 100644\n--- a/doc/guides/rel_notes/release_24_03.rst\n+++ b/doc/guides/rel_notes/release_24_03.rst\n@@ -106,6 +106,7 @@ New Features\n   * Removed the reporting of `rx_overruns` errors from xstats and instead updated `imissed` stat with its value.\n   * Added support for sub-optimal configuration notifications from the device.\n   * Restructured fast release of mbufs when RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE optimization is enabled.\n+  * Replaced `enable_llq` and `large_llq_hdr` devargs with a new devarg `llq_policy`.\n \n * **Updated Atomic Rules' Arkville driver.**\n \ndiff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c\nindex 537ee9f8c3..2414f631c8 100644\n--- a/drivers/net/ena/ena_ethdev.c\n+++ b/drivers/net/ena/ena_ethdev.c\n@@ -40,6 +40,8 @@\n \n #define BITS_PER_TYPE(type) (sizeof(type) * BITS_PER_BYTE)\n \n+#define DECIMAL_BASE 10\n+\n /*\n  * We should try to keep ENA_CLEANUP_BUF_SIZE lower than\n  * RTE_MEMPOOL_CACHE_MAX_SIZE, so we can fit this in mempool local cache.\n@@ -74,17 +76,23 @@ struct ena_stats {\n \tENA_STAT_ENTRY(stat, srd)\n \n /* Device arguments */\n-#define ENA_DEVARG_LARGE_LLQ_HDR \"large_llq_hdr\"\n+/* Controls whether to disable LLQ, use device recommended header policy\n+ * or overriding the device recommendation.\n+ * 0 - Disable LLQ.\n+ *     Use with extreme caution as it leads to a huge performance\n+ *     degradation on AWS instances from 6th generation onwards.\n+ * 1 - Accept device recommended LLQ policy (Default).\n+ *     Device can recommend normal or large LLQ policy.\n+ * 2 - Enforce normal LLQ policy.\n+ * 3 - Enforce large LLQ policy.\n+ *     Required for packets with header that exceed 96 bytes on\n+ *     AWS instances prior to 5th generation.\n+ */\n+#define ENA_DEVARG_LLQ_POLICY \"llq_policy\"\n /* Timeout in seconds after which a single uncompleted Tx packet should be\n  * considered as a missing.\n  */\n #define ENA_DEVARG_MISS_TXC_TO \"miss_txc_to\"\n-/*\n- * Controls whether LLQ should be used (if available). Enabled by default.\n- * NOTE: It's highly not recommended to disable the LLQ, as it may lead to a\n- * huge performance degradation on 6th generation AWS instances.\n- */\n-#define ENA_DEVARG_ENABLE_LLQ \"enable_llq\"\n \n /*\n  * Each rte_memzone should have unique name.\n@@ -279,9 +287,9 @@ static int ena_xstats_get_by_id(struct rte_eth_dev *dev,\n \t\t\t\tconst uint64_t *ids,\n \t\t\t\tuint64_t *values,\n \t\t\t\tunsigned int n);\n-static int ena_process_bool_devarg(const char *key,\n-\t\t\t\t   const char *value,\n-\t\t\t\t   void *opaque);\n+static int ena_process_llq_policy_devarg(const char *key,\n+\t\t\t\t\t const char *value,\n+\t\t\t\t\t void *opaque);\n static int ena_parse_devargs(struct ena_adapter *adapter,\n \t\t\t     struct rte_devargs *devargs);\n static void ena_copy_customer_metrics(struct ena_adapter *adapter,\n@@ -297,6 +305,7 @@ static int ena_rx_queue_intr_disable(struct rte_eth_dev *dev,\n static int ena_configure_aenq(struct ena_adapter *adapter);\n static int ena_mp_primary_handle(const struct rte_mp_msg *mp_msg,\n \t\t\t\t const void *peer);\n+static bool ena_use_large_llq_hdr(struct ena_adapter *adapter, uint8_t recommended_entry_size);\n \n static const struct eth_dev_ops ena_dev_ops = {\n \t.dev_configure          = ena_dev_configure,\n@@ -1135,6 +1144,7 @@ ena_calc_io_queue_size(struct ena_calc_queue_size_ctx *ctx,\n \tctx->max_tx_queue_size = max_tx_queue_size;\n \tctx->max_rx_queue_size = max_rx_queue_size;\n \n+\tPMD_DRV_LOG(INFO, \"tx queue size %u\\n\", max_tx_queue_size);\n \treturn 0;\n }\n \n@@ -2034,7 +2044,7 @@ ena_set_queues_placement_policy(struct ena_adapter *adapter,\n \tint rc;\n \tu32 llq_feature_mask;\n \n-\tif (!adapter->enable_llq) {\n+\tif (adapter->llq_header_policy == ENA_LLQ_POLICY_DISABLED) {\n \t\tPMD_DRV_LOG(WARNING,\n \t\t\t\"NOTE: LLQ has been disabled as per user's request. \"\n \t\t\t\"This may lead to a huge performance degradation!\\n\");\n@@ -2239,8 +2249,7 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev)\n \n \t/* Assign default devargs values */\n \tadapter->missing_tx_completion_to = ENA_TX_TIMEOUT;\n-\tadapter->enable_llq = true;\n-\tadapter->use_large_llq_hdr = false;\n+\tadapter->llq_header_policy = ENA_LLQ_POLICY_RECOMMENDED;\n \n \trc = ena_parse_devargs(adapter, pci_dev->device.devargs);\n \tif (rc != 0) {\n@@ -2264,8 +2273,9 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev)\n \tif (!(adapter->all_aenq_groups & BIT(ENA_ADMIN_LINK_CHANGE)))\n \t\tadapter->edev_data->dev_flags &= ~RTE_ETH_DEV_INTR_LSC;\n \n-\tset_default_llq_configurations(&llq_config, &get_feat_ctx.llq,\n-\t\tadapter->use_large_llq_hdr);\n+\tbool use_large_llq_hdr = ena_use_large_llq_hdr(adapter,\n+\t\t\t\t\t\t       get_feat_ctx.llq.entry_size_recommended);\n+\tset_default_llq_configurations(&llq_config, &get_feat_ctx.llq, use_large_llq_hdr);\n \trc = ena_set_queues_placement_policy(adapter, ena_dev,\n \t\t\t\t\t     &get_feat_ctx.llq, &llq_config);\n \tif (unlikely(rc)) {\n@@ -2273,18 +2283,19 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev)\n \t\treturn rc;\n \t}\n \n-\tif (ena_dev->tx_mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST)\n+\tif (ena_dev->tx_mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST) {\n \t\tqueue_type_str = \"Regular\";\n-\telse\n+\t} else {\n \t\tqueue_type_str = \"Low latency\";\n+\t\tPMD_DRV_LOG(INFO, \"LLQ entry size %uB\\n\", llq_config.llq_ring_entry_size_value);\n+\t}\n \tPMD_DRV_LOG(INFO, \"Placement policy: %s\\n\", queue_type_str);\n \n \tcalc_queue_ctx.ena_dev = ena_dev;\n \tcalc_queue_ctx.get_feat_ctx = &get_feat_ctx;\n \n \tmax_num_io_queues = ena_calc_max_io_queue_num(ena_dev, &get_feat_ctx);\n-\trc = ena_calc_io_queue_size(&calc_queue_ctx,\n-\t\tadapter->use_large_llq_hdr);\n+\trc = ena_calc_io_queue_size(&calc_queue_ctx, use_large_llq_hdr);\n \tif (unlikely((rc != 0) || (max_num_io_queues == 0))) {\n \t\trc = -EFAULT;\n \t\tgoto err_device_destroy;\n@@ -3632,7 +3643,7 @@ static int ena_process_uint_devarg(const char *key,\n \tchar *str_end;\n \tuint64_t uint_value;\n \n-\tuint_value = strtoull(value, &str_end, 10);\n+\tuint_value = strtoull(value, &str_end, DECIMAL_BASE);\n \tif (value == str_end) {\n \t\tPMD_INIT_LOG(ERR,\n \t\t\t\"Invalid value for key '%s'. Only uint values are accepted.\\n\",\n@@ -3663,41 +3674,29 @@ static int ena_process_uint_devarg(const char *key,\n \treturn 0;\n }\n \n-static int ena_process_bool_devarg(const char *key,\n-\t\t\t\t   const char *value,\n-\t\t\t\t   void *opaque)\n+static int ena_process_llq_policy_devarg(const char *key, const char *value, void *opaque)\n {\n \tstruct ena_adapter *adapter = opaque;\n-\tbool bool_value;\n+\tuint32_t policy;\n \n-\t/* Parse the value. */\n-\tif (strcmp(value, \"1\") == 0) {\n-\t\tbool_value = true;\n-\t} else if (strcmp(value, \"0\") == 0) {\n-\t\tbool_value = false;\n+\tpolicy = strtoul(value, NULL, DECIMAL_BASE);\n+\tif (policy < ENA_LLQ_POLICY_LAST) {\n+\t\tadapter->llq_header_policy = policy;\n \t} else {\n-\t\tPMD_INIT_LOG(ERR,\n-\t\t\t\"Invalid value: '%s' for key '%s'. Accepted: '0' or '1'\\n\",\n-\t\t\tvalue, key);\n+\t\tPMD_INIT_LOG(ERR, \"Invalid value: '%s' for key '%s'. valid [0-3]\\n\", value, key);\n \t\treturn -EINVAL;\n \t}\n-\n-\t/* Now, assign it to the proper adapter field. */\n-\tif (strcmp(key, ENA_DEVARG_LARGE_LLQ_HDR) == 0)\n-\t\tadapter->use_large_llq_hdr = bool_value;\n-\telse if (strcmp(key, ENA_DEVARG_ENABLE_LLQ) == 0)\n-\t\tadapter->enable_llq = bool_value;\n-\n+\tPMD_DRV_LOG(INFO,\n+\t\t\"LLQ policy is %u [0 - disabled, 1 - device recommended, 2 - normal, 3 - large]\\n\",\n+\t\tadapter->llq_header_policy);\n \treturn 0;\n }\n \n-static int ena_parse_devargs(struct ena_adapter *adapter,\n-\t\t\t     struct rte_devargs *devargs)\n+static int ena_parse_devargs(struct ena_adapter *adapter, struct rte_devargs *devargs)\n {\n \tstatic const char * const allowed_args[] = {\n-\t\tENA_DEVARG_LARGE_LLQ_HDR,\n+\t\tENA_DEVARG_LLQ_POLICY,\n \t\tENA_DEVARG_MISS_TXC_TO,\n-\t\tENA_DEVARG_ENABLE_LLQ,\n \t\tNULL,\n \t};\n \tstruct rte_kvargs *kvlist;\n@@ -3708,21 +3707,18 @@ static int ena_parse_devargs(struct ena_adapter *adapter,\n \n \tkvlist = rte_kvargs_parse(devargs->args, allowed_args);\n \tif (kvlist == NULL) {\n-\t\tPMD_INIT_LOG(ERR, \"Invalid device arguments: %s\\n\",\n-\t\t\tdevargs->args);\n+\t\tPMD_INIT_LOG(ERR, \"Invalid device arguments: %s\\n\", devargs->args);\n \t\treturn -EINVAL;\n \t}\n \n-\trc = rte_kvargs_process(kvlist, ENA_DEVARG_LARGE_LLQ_HDR,\n-\t\tena_process_bool_devarg, adapter);\n+\trc = rte_kvargs_process(kvlist, ENA_DEVARG_LLQ_POLICY,\n+\t\tena_process_llq_policy_devarg, adapter);\n \tif (rc != 0)\n \t\tgoto exit;\n \trc = rte_kvargs_process(kvlist, ENA_DEVARG_MISS_TXC_TO,\n \t\tena_process_uint_devarg, adapter);\n \tif (rc != 0)\n \t\tgoto exit;\n-\trc = rte_kvargs_process(kvlist, ENA_DEVARG_ENABLE_LLQ,\n-\t\tena_process_bool_devarg, adapter);\n \n exit:\n \trte_kvargs_free(kvlist);\n@@ -3942,8 +3938,7 @@ RTE_PMD_REGISTER_PCI(net_ena, rte_ena_pmd);\n RTE_PMD_REGISTER_PCI_TABLE(net_ena, pci_id_ena_map);\n RTE_PMD_REGISTER_KMOD_DEP(net_ena, \"* igb_uio | uio_pci_generic | vfio-pci\");\n RTE_PMD_REGISTER_PARAM_STRING(net_ena,\n-\tENA_DEVARG_LARGE_LLQ_HDR \"=<0|1> \"\n-\tENA_DEVARG_ENABLE_LLQ \"=<0|1> \"\n+\tENA_DEVARG_LLQ_POLICY \"=<0|1|2|3> \"\n \tENA_DEVARG_MISS_TXC_TO \"=<uint>\");\n RTE_LOG_REGISTER_SUFFIX(ena_logtype_init, init, NOTICE);\n RTE_LOG_REGISTER_SUFFIX(ena_logtype_driver, driver, NOTICE);\n@@ -4129,3 +4124,16 @@ ena_mp_primary_handle(const struct rte_mp_msg *mp_msg, const void *peer)\n \t/* Return just IPC processing status */\n \treturn rte_mp_reply(&mp_rsp, peer);\n }\n+\n+static bool ena_use_large_llq_hdr(struct ena_adapter *adapter, uint8_t recommended_entry_size)\n+{\n+\tif (adapter->llq_header_policy == ENA_LLQ_POLICY_LARGE) {\n+\t\treturn true;\n+\t} else if (adapter->llq_header_policy == ENA_LLQ_POLICY_RECOMMENDED) {\n+\t\tPMD_DRV_LOG(INFO, \"Recommended device entry size policy %u\\n\",\n+\t\t\trecommended_entry_size);\n+\t\tif (recommended_entry_size == ENA_ADMIN_LIST_ENTRY_SIZE_256B)\n+\t\t\treturn true;\n+\t}\n+\treturn false;\n+}\ndiff --git a/drivers/net/ena/ena_ethdev.h b/drivers/net/ena/ena_ethdev.h\nindex 20b8307836..6716f01ba5 100644\n--- a/drivers/net/ena/ena_ethdev.h\n+++ b/drivers/net/ena/ena_ethdev.h\n@@ -85,6 +85,14 @@ enum ena_ring_type {\n \tENA_RING_TYPE_TX = 2,\n };\n \n+typedef enum ena_llq_policy_t {\n+\tENA_LLQ_POLICY_DISABLED    = 0, /* Host queues */\n+\tENA_LLQ_POLICY_RECOMMENDED = 1, /* Device recommendation */\n+\tENA_LLQ_POLICY_NORMAL      = 2, /* 128B long LLQ entry */\n+\tENA_LLQ_POLICY_LARGE       = 3, /* 256B long LLQ entry */\n+\tENA_LLQ_POLICY_LAST,\n+} ena_llq_policy;\n+\n struct ena_tx_buffer {\n \tstruct rte_mbuf *mbuf;\n \tunsigned int tx_descs;\n@@ -329,8 +337,7 @@ struct ena_adapter {\n \n \tbool trigger_reset;\n \n-\tbool enable_llq;\n-\tbool use_large_llq_hdr;\n+\tena_llq_policy llq_header_policy;\n \n \tuint32_t last_tx_comp_qid;\n \tuint64_t missing_tx_completion_to;\n",
    "prefixes": [
        "v3",
        "07/33"
    ]
}