get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 78276,
    "url": "http://patches.dpdk.org/api/patches/78276/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1600764594-14752-34-git-send-email-arybchenko@solarflare.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<1600764594-14752-34-git-send-email-arybchenko@solarflare.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1600764594-14752-34-git-send-email-arybchenko@solarflare.com",
    "date": "2020-09-22T08:49:27",
    "name": "[33/60] common/sfc_efx/base: implement Tx control path for Riverhead",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0dc7015d1061654d6826b39c6c1f616a6ebefacd",
    "submitter": {
        "id": 607,
        "url": "http://patches.dpdk.org/api/people/607/?format=api",
        "name": "Andrew Rybchenko",
        "email": "arybchenko@solarflare.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1600764594-14752-34-git-send-email-arybchenko@solarflare.com/mbox/",
    "series": [
        {
            "id": 12400,
            "url": "http://patches.dpdk.org/api/series/12400/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12400",
            "date": "2020-09-22T08:48:59",
            "name": "common/sfc_efx: support Riverhead NIC family",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/12400/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/78276/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/78276/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 75372A04E1;\n\tTue, 22 Sep 2020 10:54:57 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 030991DAD2;\n\tTue, 22 Sep 2020 10:51:01 +0200 (CEST)",
            "from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com\n [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 5A5161D725\n for <dev@dpdk.org>; Tue, 22 Sep 2020 10:50:20 +0200 (CEST)",
            "from mx1-us1.ppe-hosted.com (unknown [10.110.50.137])\n by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id\n D79A92006F for <dev@dpdk.org>; Tue, 22 Sep 2020 08:50:19 +0000 (UTC)",
            "from us4-mdac16-61.at1.mdlocal (unknown [10.110.50.154])\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id D761D6009B\n for <dev@dpdk.org>; Tue, 22 Sep 2020 08:50:19 +0000 (UTC)",
            "from mx1-us1.ppe-hosted.com (unknown [10.110.50.12])\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id\n 666E0220064\n for <dev@dpdk.org>; Tue, 22 Sep 2020 08:50:19 +0000 (UTC)",
            "from webmail.solarflare.com (uk.solarflare.com [193.34.186.16])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))\n (No client certificate requested)\n by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 197784005B\n for <dev@dpdk.org>; Tue, 22 Sep 2020 08:50:19 +0000 (UTC)",
            "from ukex01.SolarFlarecom.com (10.17.10.4) by\n ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id\n 15.0.1497.2; Tue, 22 Sep 2020 09:50:11 +0100",
            "from opal.uk.solarflarecom.com (10.17.10.1) by\n ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server id\n 15.0.1497.2 via Frontend Transport; Tue, 22 Sep 2020 09:50:10 +0100",
            "from ukv-loginhost.uk.solarflarecom.com\n (ukv-loginhost.uk.solarflarecom.com [10.17.10.39])\n by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id 08M8oAx3004731\n for <dev@dpdk.org>; Tue, 22 Sep 2020 09:50:10 +0100",
            "from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1])\n by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id C90221613A9\n for <dev@dpdk.org>; Tue, 22 Sep 2020 09:50:10 +0100 (BST)"
        ],
        "X-Virus-Scanned": "Proofpoint Essentials engine",
        "From": "Andrew Rybchenko <arybchenko@solarflare.com>",
        "To": "<dev@dpdk.org>",
        "Date": "Tue, 22 Sep 2020 09:49:27 +0100",
        "Message-ID": "<1600764594-14752-34-git-send-email-arybchenko@solarflare.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1600764594-14752-1-git-send-email-arybchenko@solarflare.com>",
        "References": "<1600764594-14752-1-git-send-email-arybchenko@solarflare.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-TM-AS-Product-Ver": "SMEX-12.5.0.1300-8.6.1012-25674.003",
        "X-TM-AS-Result": "No-1.628100-8.000000-10",
        "X-TMASE-MatchedRID": "HxUUw2kVJz6FCX92EIwegqiUivh0j2PvhVDnkfzD7uYGmHr1eMxt2YB5\n w6KBECW1rdoLblq9S5pfzZ2iPRxeXmiqvF73selK/1dEgwtQ6NCi8D/o42y/SsegunXInzcYxON\n QYeoRenEAb9Rn+iNx05V0tSdOcfI8eDPho5Jw+XDM0ihsfYPMYY7P8sslRxoevGAx/1ATZ5uEOO\n rGGbRIRnWMTvVbgjN/k6psACbw/shn9FmZ/33o9osJhiDgH5JhWw/S0HB7eoPvrj2fROADieVSU\n U6b/D2d4COTKxJYuBqnO3MMKycGTZfAQhbUcX5U1uDM+OtX7BxQYo4xNF42PhLf1vz7ecPHG1Kt\n 4DlqVAiHsp2lK2QCgOuMKFkmExDlLvv2cUtLK/ueAiCmPx4NwBnUJ0Ek6yhjxEHRux+uk8hxKpv\n EGAbTDkCKWL9a/2SsqiYdiLi9wA3OcudgIgDZcipN8L3ebCEpox6CwjM8JjXmNSxT2SPe7sOaG2\n Egn1n/JyGUZxyRANT3C+TzuJ8l4hySoBCeolQDq8uPJC94SFgR06l6KId4N+omcwkrJL7n",
        "X-TM-AS-User-Approved-Sender": "Yes",
        "X-TM-AS-User-Blocked-Sender": "No",
        "X-TMASE-Result": "10--1.628100-8.000000",
        "X-TMASE-Version": "SMEX-12.5.0.1300-8.6.1012-25674.003",
        "X-MDID": "1600764619-ZikGzJqjcPSV",
        "Subject": "[dpdk-dev] [PATCH 33/60] common/sfc_efx/base: implement Tx control\n\tpath for Riverhead",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Tx control path on Riverhead is very similar to EF10, but datapath\ndiffers a lot since Tx descriptor size is 16 bytes (vs 8 bytes on EF10).\n\nSigned-off-by: Andrew Rybchenko <arybchenko@solarflare.com>\nReviewed-by: Andy Moreton <amoreton@xilinx.com>\n---\n drivers/common/sfc_efx/base/efx_impl.h   |   6 +-\n drivers/common/sfc_efx/base/efx_mcdi.c   |   6 +-\n drivers/common/sfc_efx/base/efx_tx.c     |  33 ++++\n drivers/common/sfc_efx/base/meson.build  |   1 +\n drivers/common/sfc_efx/base/rhead_impl.h |  83 ++++++++++\n drivers/common/sfc_efx/base/rhead_tx.c   | 192 +++++++++++++++++++++++\n 6 files changed, 311 insertions(+), 10 deletions(-)\n create mode 100644 drivers/common/sfc_efx/base/rhead_tx.c",
    "diff": "diff --git a/drivers/common/sfc_efx/base/efx_impl.h b/drivers/common/sfc_efx/base/efx_impl.h\nindex fac2815f25..d7e11c6323 100644\n--- a/drivers/common/sfc_efx/base/efx_impl.h\n+++ b/drivers/common/sfc_efx/base/efx_impl.h\n@@ -1452,10 +1452,6 @@ efx_mcdi_fini_rxq(\n \t__in\t\tefx_nic_t *enp,\n \t__in\t\tuint32_t instance);\n \n-#endif\t/* EFSYS_OPT_RIVERHEAD || EFX_OPTS_EF10() */\n-\n-#if EFX_OPTS_EF10()\n-\n LIBEFX_INTERNAL\n extern\t__checkReturn\tefx_rc_t\n efx_mcdi_init_txq(\n@@ -1473,7 +1469,7 @@ efx_mcdi_fini_txq(\n \t__in\t\tefx_nic_t *enp,\n \t__in\t\tuint32_t instance);\n \n-#endif\t/* EFX_OPTS_EF10() */\n+#endif\t/* EFSYS_OPT_RIVERHEAD || EFX_OPTS_EF10() */\n \n #endif /* EFSYS_OPT_MCDI */\n \ndiff --git a/drivers/common/sfc_efx/base/efx_mcdi.c b/drivers/common/sfc_efx/base/efx_mcdi.c\nindex 6a227858e6..278c5e2a64 100644\n--- a/drivers/common/sfc_efx/base/efx_mcdi.c\n+++ b/drivers/common/sfc_efx/base/efx_mcdi.c\n@@ -2863,10 +2863,6 @@ efx_mcdi_fini_rxq(\n \treturn (rc);\n }\n \n-#endif\t/* EFSYS_OPT_RIVERHEAD || EFX_OPTS_EF10() */\n-\n-#if EFX_OPTS_EF10()\n-\n \t__checkReturn\tefx_rc_t\n efx_mcdi_init_txq(\n \t__in\t\tefx_nic_t *enp,\n@@ -2999,6 +2995,6 @@ efx_mcdi_fini_txq(\n \treturn (rc);\n }\n \n-#endif\t/* EFX_OPTS_EF10() */\n+#endif\t/* EFSYS_OPT_RIVERHEAD || EFX_OPTS_EF10() */\n \n #endif\t/* EFSYS_OPT_MCDI */\ndiff --git a/drivers/common/sfc_efx/base/efx_tx.c b/drivers/common/sfc_efx/base/efx_tx.c\nindex 38c64e028b..d7f31fd46d 100644\n--- a/drivers/common/sfc_efx/base/efx_tx.c\n+++ b/drivers/common/sfc_efx/base/efx_tx.c\n@@ -205,6 +205,33 @@ static const efx_tx_ops_t\t__efx_tx_medford2_ops = {\n };\n #endif /* EFSYS_OPT_MEDFORD2 */\n \n+#if EFSYS_OPT_RIVERHEAD\n+static const efx_tx_ops_t\t__efx_tx_rhead_ops = {\n+\trhead_tx_init,\t\t\t\t/* etxo_init */\n+\trhead_tx_fini,\t\t\t\t/* etxo_fini */\n+\trhead_tx_qcreate,\t\t\t/* etxo_qcreate */\n+\trhead_tx_qdestroy,\t\t\t/* etxo_qdestroy */\n+\trhead_tx_qpost,\t\t\t\t/* etxo_qpost */\n+\trhead_tx_qpush,\t\t\t\t/* etxo_qpush */\n+\trhead_tx_qpace,\t\t\t\t/* etxo_qpace */\n+\trhead_tx_qflush,\t\t\t/* etxo_qflush */\n+\trhead_tx_qenable,\t\t\t/* etxo_qenable */\n+\tNULL,\t\t\t\t\t/* etxo_qpio_enable */\n+\tNULL,\t\t\t\t\t/* etxo_qpio_disable */\n+\tNULL,\t\t\t\t\t/* etxo_qpio_write */\n+\tNULL,\t\t\t\t\t/* etxo_qpio_post */\n+\trhead_tx_qdesc_post,\t\t\t/* etxo_qdesc_post */\n+\tNULL,\t\t\t\t\t/* etxo_qdesc_dma_create */\n+\tNULL,\t\t\t\t\t/* etxo_qdesc_tso_create */\n+\tNULL,\t\t\t\t\t/* etxo_qdesc_tso2_create */\n+\tNULL,\t\t\t\t\t/* etxo_qdesc_vlantci_create */\n+\tNULL,\t\t\t\t\t/* etxo_qdesc_checksum_create */\n+#if EFSYS_OPT_QSTATS\n+\trhead_tx_qstats_update,\t\t\t/* etxo_qstats_update */\n+#endif\n+};\n+#endif /* EFSYS_OPT_RIVERHEAD */\n+\n \n \t__checkReturn\tefx_rc_t\n efx_tx_init(\n@@ -251,6 +278,12 @@ efx_tx_init(\n \t\tbreak;\n #endif /* EFSYS_OPT_MEDFORD2 */\n \n+#if EFSYS_OPT_RIVERHEAD\n+\tcase EFX_FAMILY_RIVERHEAD:\n+\t\tetxop = &__efx_tx_rhead_ops;\n+\t\tbreak;\n+#endif /* EFSYS_OPT_RIVERHEAD */\n+\n \tdefault:\n \t\tEFSYS_ASSERT(0);\n \t\trc = ENOTSUP;\ndiff --git a/drivers/common/sfc_efx/base/meson.build b/drivers/common/sfc_efx/base/meson.build\nindex aff5017cff..8f944bb45b 100644\n--- a/drivers/common/sfc_efx/base/meson.build\n+++ b/drivers/common/sfc_efx/base/meson.build\n@@ -56,6 +56,7 @@ sources = [\n \t'rhead_intr.c',\n \t'rhead_nic.c',\n \t'rhead_rx.c',\n+\t'rhead_tx.c',\n ]\n \n extra_flags = [\ndiff --git a/drivers/common/sfc_efx/base/rhead_impl.h b/drivers/common/sfc_efx/base/rhead_impl.h\nindex 4b7a07e5cb..fa5e2b4915 100644\n--- a/drivers/common/sfc_efx/base/rhead_impl.h\n+++ b/drivers/common/sfc_efx/base/rhead_impl.h\n@@ -355,6 +355,89 @@ rhead_rx_qdestroy(\n \t__in\t\tefx_rxq_t *erp);\n \n \n+/* TX */\n+\n+LIBEFX_INTERNAL\n+extern\t__checkReturn\tefx_rc_t\n+rhead_tx_init(\n+\t__in\t\tefx_nic_t *enp);\n+\n+LIBEFX_INTERNAL\n+extern\t\t\tvoid\n+rhead_tx_fini(\n+\t__in\t\tefx_nic_t *enp);\n+\n+LIBEFX_INTERNAL\n+extern\t__checkReturn\tefx_rc_t\n+rhead_tx_qcreate(\n+\t__in\t\tefx_nic_t *enp,\n+\t__in\t\tunsigned int index,\n+\t__in\t\tunsigned int label,\n+\t__in\t\tefsys_mem_t *esmp,\n+\t__in\t\tsize_t ndescs,\n+\t__in\t\tuint32_t id,\n+\t__in\t\tuint16_t flags,\n+\t__in\t\tefx_evq_t *eep,\n+\t__in\t\tefx_txq_t *etp,\n+\t__out\t\tunsigned int *addedp);\n+\n+LIBEFX_INTERNAL\n+extern\t\tvoid\n+rhead_tx_qdestroy(\n+\t__in\t\tefx_txq_t *etp);\n+\n+LIBEFX_INTERNAL\n+extern\t__checkReturn\t\tefx_rc_t\n+rhead_tx_qpost(\n+\t__in\t\t\tefx_txq_t *etp,\n+\t__in_ecount(ndescs)\tefx_buffer_t *ebp,\n+\t__in\t\t\tunsigned int ndescs,\n+\t__in\t\t\tunsigned int completed,\n+\t__inout\t\t\tunsigned int *addedp);\n+\n+LIBEFX_INTERNAL\n+extern\t\t\tvoid\n+rhead_tx_qpush(\n+\t__in\t\tefx_txq_t *etp,\n+\t__in\t\tunsigned int added,\n+\t__in\t\tunsigned int pushed);\n+\n+LIBEFX_INTERNAL\n+extern\t__checkReturn\tefx_rc_t\n+rhead_tx_qpace(\n+\t__in\t\tefx_txq_t *etp,\n+\t__in\t\tunsigned int ns);\n+\n+LIBEFX_INTERNAL\n+extern\t__checkReturn\tefx_rc_t\n+rhead_tx_qflush(\n+\t__in\t\tefx_txq_t *etp);\n+\n+LIBEFX_INTERNAL\n+extern\t\t\tvoid\n+rhead_tx_qenable(\n+\t__in\t\tefx_txq_t *etp);\n+\n+LIBEFX_INTERNAL\n+extern\t__checkReturn\tefx_rc_t\n+rhead_tx_qdesc_post(\n+\t__in\t\tefx_txq_t *etp,\n+\t__in_ecount(n)\tefx_desc_t *ed,\n+\t__in\t\tunsigned int n,\n+\t__in\t\tunsigned int completed,\n+\t__inout\t\tunsigned int *addedp);\n+\n+#if EFSYS_OPT_QSTATS\n+\n+LIBEFX_INTERNAL\n+extern\t\t\tvoid\n+rhead_tx_qstats_update(\n+\t__in\t\t\t\tefx_txq_t *etp,\n+\t__inout_ecount(TX_NQSTATS)\tefsys_stat_t *stat);\n+\n+#endif /* EFSYS_OPT_QSTATS */\n+\n+\n #ifdef\t__cplusplus\n }\n #endif\ndiff --git a/drivers/common/sfc_efx/base/rhead_tx.c b/drivers/common/sfc_efx/base/rhead_tx.c\nnew file mode 100644\nindex 0000000000..4c60f329d1\n--- /dev/null\n+++ b/drivers/common/sfc_efx/base/rhead_tx.c\n@@ -0,0 +1,192 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ *\n+ * Copyright(c) 2019-2020 Xilinx, Inc.\n+ * Copyright(c) 2018-2019 Solarflare Communications Inc.\n+ */\n+\n+#include \"efx.h\"\n+#include \"efx_impl.h\"\n+\n+\n+#if EFSYS_OPT_RIVERHEAD\n+\n+\t__checkReturn\tefx_rc_t\n+rhead_tx_init(\n+\t__in\t\tefx_nic_t *enp)\n+{\n+\t_NOTE(ARGUNUSED(enp))\n+\t/* Nothing to do here */\n+\treturn (0);\n+}\n+\n+\t\t\tvoid\n+rhead_tx_fini(\n+\t__in\t\tefx_nic_t *enp)\n+{\n+\t_NOTE(ARGUNUSED(enp))\n+\t/* Nothing to do here */\n+}\n+\n+\t__checkReturn\tefx_rc_t\n+rhead_tx_qcreate(\n+\t__in\t\tefx_nic_t *enp,\n+\t__in\t\tunsigned int index,\n+\t__in\t\tunsigned int label,\n+\t__in\t\tefsys_mem_t *esmp,\n+\t__in\t\tsize_t ndescs,\n+\t__in\t\tuint32_t id,\n+\t__in\t\tuint16_t flags,\n+\t__in\t\tefx_evq_t *eep,\n+\t__in\t\tefx_txq_t *etp,\n+\t__out\t\tunsigned int *addedp)\n+{\n+\tefx_rc_t rc;\n+\n+\t/*\n+\t * NMC manages the NMMU entries, and so buffer table IDs are\n+\t * ignored here\n+\t */\n+\t_NOTE(ARGUNUSED(id))\n+\n+\tif ((rc = efx_mcdi_init_txq(enp, ndescs, eep->ee_index, label, index,\n+\t    flags, esmp)) != 0)\n+\t\tgoto fail1;\n+\n+\t/*\n+\t * Return the initial queue index which is zero since no option\n+\t * descriptors are sent at start of day.\n+\t */\n+\t*addedp = 0;\n+\n+\treturn (0);\n+\n+fail1:\n+\tEFSYS_PROBE1(fail1, efx_rc_t, rc);\n+\n+\treturn (rc);\n+}\n+\n+\t\tvoid\n+rhead_tx_qdestroy(\n+\t__in\tefx_txq_t *etp)\n+{\n+\t_NOTE(ARGUNUSED(etp))\n+\t/* Nothing to do here */\n+}\n+\n+\t__checkReturn\t\tefx_rc_t\n+rhead_tx_qpost(\n+\t__in\t\t\tefx_txq_t *etp,\n+\t__in_ecount(ndescs)\tefx_buffer_t *eb,\n+\t__in\t\t\tunsigned int ndescs,\n+\t__in\t\t\tunsigned int completed,\n+\t__inout\t\t\tunsigned int *addedp)\n+{\n+\t_NOTE(ARGUNUSED(etp))\n+\t_NOTE(ARGUNUSED(eb))\n+\t_NOTE(ARGUNUSED(ndescs))\n+\t_NOTE(ARGUNUSED(completed))\n+\t_NOTE(ARGUNUSED(addedp))\n+\n+\t/* FIXME Implement the method for Riverhead */\n+\n+\treturn (ENOTSUP);\n+}\n+\n+\t\t\tvoid\n+rhead_tx_qpush(\n+\t__in\t\tefx_txq_t *etp,\n+\t__in\t\tunsigned int added,\n+\t__in\t\tunsigned int pushed)\n+{\n+\t_NOTE(ARGUNUSED(etp, added, pushed))\n+\n+\t/* FIXME Implement the method for Riverhead */\n+\tEFSYS_ASSERT(B_FALSE);\n+}\n+\n+\t__checkReturn\tefx_rc_t\n+rhead_tx_qpace(\n+\t__in\t\tefx_txq_t *etp,\n+\t__in\t\tunsigned int ns)\n+{\n+\t_NOTE(ARGUNUSED(etp))\n+\t_NOTE(ARGUNUSED(ns))\n+\n+\t/* FIXME Implement the method for Riverhead */\n+\n+\treturn (ENOTSUP);\n+}\n+\n+\t__checkReturn\tefx_rc_t\n+rhead_tx_qflush(\n+\t__in\t\tefx_txq_t *etp)\n+{\n+\tefx_nic_t *enp = etp->et_enp;\n+\tefx_rc_t rc;\n+\n+\tif ((rc = efx_mcdi_fini_txq(enp, etp->et_index)) != 0)\n+\t\tgoto fail1;\n+\n+\treturn (0);\n+\n+fail1:\n+\t/*\n+\t * EALREADY is not an error, but indicates that the MC has rebooted and\n+\t * that the TXQ has already been destroyed. Callers need to know that\n+\t * the TXQ flush has completed to avoid waiting until timeout for a\n+\t * flush done event that will not be delivered.\n+\t */\n+\tif (rc != EALREADY)\n+\t\tEFSYS_PROBE1(fail1, efx_rc_t, rc);\n+\n+\treturn (rc);\n+}\n+\n+\t\t\tvoid\n+rhead_tx_qenable(\n+\t__in\t\tefx_txq_t *etp)\n+{\n+\t_NOTE(ARGUNUSED(etp))\n+\t/* Nothing to do here */\n+}\n+\n+\t__checkReturn\t\tefx_rc_t\n+rhead_tx_qdesc_post(\n+\t__in\t\t\tefx_txq_t *etp,\n+\t__in_ecount(ndescs)\tefx_desc_t *ed,\n+\t__in\t\t\tunsigned int ndescs,\n+\t__in\t\t\tunsigned int completed,\n+\t__inout\t\t\tunsigned int *addedp)\n+{\n+\t_NOTE(ARGUNUSED(etp))\n+\t_NOTE(ARGUNUSED(ed))\n+\t_NOTE(ARGUNUSED(ndescs))\n+\t_NOTE(ARGUNUSED(completed))\n+\t_NOTE(ARGUNUSED(addedp))\n+\n+\t/* FIXME Implement the method for Riverhead */\n+\n+\treturn (ENOTSUP);\n+}\n+\n+#if EFSYS_OPT_QSTATS\n+\n+\t\t\tvoid\n+rhead_tx_qstats_update(\n+\t__in\t\t\t\tefx_txq_t *etp,\n+\t__inout_ecount(TX_NQSTATS)\tefsys_stat_t *stat)\n+{\n+\tunsigned int id;\n+\n+\tfor (id = 0; id < TX_NQSTATS; id++) {\n+\t\tefsys_stat_t *essp = &stat[id];\n+\n+\t\tEFSYS_STAT_INCR(essp, etp->et_stat[id]);\n+\t\tetp->et_stat[id] = 0;\n+\t}\n+}\n+\n+#endif /* EFSYS_OPT_QSTATS */\n+\n+#endif /* EFSYS_OPT_RIVERHEAD */\n",
    "prefixes": [
        "33/60"
    ]
}