get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87549,
    "url": "https://patches.dpdk.org/api/patches/87549/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210129124510.12158-11-pnalla@marvell.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": "<20210129124510.12158-11-pnalla@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210129124510.12158-11-pnalla@marvell.com",
    "date": "2021-01-29T12:45:08",
    "name": "[v7,10/12] net/octeontx_ep: added dev start and stop",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6df3de594a2ed630dc70bd446548a44ac68adda7",
    "submitter": {
        "id": 2074,
        "url": "https://patches.dpdk.org/api/people/2074/?format=api",
        "name": "Pradeep Nalla",
        "email": "pnalla@marvell.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/20210129124510.12158-11-pnalla@marvell.com/mbox/",
    "series": [
        {
            "id": 15021,
            "url": "https://patches.dpdk.org/api/series/15021/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=15021",
            "date": "2021-01-29T00:16:27",
            "name": "Octeon Tx/Tx2 Endpoint pmd",
            "version": 6,
            "mbox": "https://patches.dpdk.org/series/15021/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/87549/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/87549/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 70A60A09E4;\n\tFri, 29 Jan 2021 13:46:45 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 34083240223;\n\tFri, 29 Jan 2021 13:45:32 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id E173B2401E8\n for <dev@dpdk.org>; Fri, 29 Jan 2021 13:45:19 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 10TCZ3Q1023534 for <dev@dpdk.org>; Fri, 29 Jan 2021 04:45:19 -0800",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com with ESMTP id 36b1xpqw4v-5\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Fri, 29 Jan 2021 04:45:18 -0800",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Fri, 29 Jan 2021 04:45:16 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Fri, 29 Jan 2021 04:45:16 -0800",
            "from sburla-PowerEdge-T630.caveonetworks.com (unknown\n [10.106.27.217])\n by maili.marvell.com (Postfix) with ESMTP id 2DEFD3F7040;\n Fri, 29 Jan 2021 04:45:16 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-type; s=pfpt0220; bh=C6rSllBJnxjcRUAbm19XscyHb7LHkt6jwO1FjcHMTzM=;\n b=I+uhehNa6NUCTsWJ4+dIwLAwht7mlzxkob0CdxPaR0fc+BLnCH3qEJ2OZF2QF+2Z7ybv\n BdikvTgZwYNDAbbx5YCOH2RJzMuurIE2/KE44yMepuGd91zwU0oHKwgekfIydXVP2kF9\n x5eeHy1219V4eAFKmMrcL2G3LsUkzvQGwcPHi7K+R5H8sqedHMsy9Zy0krK+iHeJOK5x\n WZhzxUSW/VAgomB/xV42rdRRTktMj/odrlGK33WjIvSuUMtg23khD7H39crwHukfNvs3\n UpoR2vpf7p545fp9z/bs87VOfFz/7DJoF68cf+9N6rnfcwoc47l5Desnlro3DE5geknG 4A==",
        "From": "Nalla Pradeep <pnalla@marvell.com>",
        "To": "Nalla Pradeep <pnalla@marvell.com>, Radha Mohan Chintakuntla\n <radhac@marvell.com>, Veerasenareddy Burru <vburru@marvell.com>",
        "CC": "<jerinj@marvell.com>, <sburla@marvell.com>, <dev@dpdk.org>",
        "Date": "Fri, 29 Jan 2021 04:45:08 -0800",
        "Message-ID": "<20210129124510.12158-11-pnalla@marvell.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210129001640.1251-1-pnalla@marvell.com>",
        "References": "<20210129001640.1251-1-pnalla@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.369, 18.0.737\n definitions=2021-01-29_05:2021-01-28,\n 2021-01-29 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v7 10/12] net/octeontx_ep: added dev start and\n stop",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Dev start and stop operations are added. To accomplish this internal\nfunctions to enable or disable io queues are incorporated.\n\nSigned-off-by: Nalla Pradeep <pnalla@marvell.com>\n---\n drivers/net/octeontx_ep/otx2_ep_vf.c    | 107 ++++++++++++++++++++\n drivers/net/octeontx_ep/otx_ep_common.h |   8 ++\n drivers/net/octeontx_ep/otx_ep_ethdev.c |  44 ++++++++\n drivers/net/octeontx_ep/otx_ep_vf.c     | 128 ++++++++++++++++++++++++\n drivers/net/octeontx_ep/otx_ep_vf.h     |   4 +\n 5 files changed, 291 insertions(+)",
    "diff": "diff --git a/drivers/net/octeontx_ep/otx2_ep_vf.c b/drivers/net/octeontx_ep/otx2_ep_vf.c\nindex 84de89ef7..64cd8731d 100644\n--- a/drivers/net/octeontx_ep/otx2_ep_vf.c\n+++ b/drivers/net/octeontx_ep/otx2_ep_vf.c\n@@ -188,6 +188,104 @@ otx2_vf_setup_oq_regs(struct otx_ep_device *otx_ep, uint32_t oq_no)\n \t\t   rte_read32(droq->pkts_sent_reg));\n }\n \n+static int\n+otx2_vf_enable_iq(struct otx_ep_device *otx_ep, uint32_t q_no)\n+{\n+\tuint64_t loop = SDP_VF_BUSY_LOOP_COUNT;\n+\tuint64_t reg_val = 0ull;\n+\n+\t/* Resetting doorbells during IQ enabling also to handle abrupt\n+\t * guest reboot. IQ reset does not clear the doorbells.\n+\t */\n+\totx2_write64(0xFFFFFFFF, otx_ep->hw_addr +\n+\t\t     SDP_VF_R_IN_INSTR_DBELL(q_no));\n+\n+\twhile (((otx2_read64(otx_ep->hw_addr +\n+\t\t SDP_VF_R_IN_INSTR_DBELL(q_no))) != 0ull) && loop--) {\n+\t\trte_delay_ms(1);\n+\t}\n+\n+\tif (!loop) {\n+\t\totx_ep_err(\"INSTR DBELL not coming back to 0\\n\");\n+\t\treturn -EIO;\n+\t}\n+\n+\treg_val = otx2_read64(otx_ep->hw_addr + SDP_VF_R_IN_ENABLE(q_no));\n+\treg_val |= 0x1ull;\n+\n+\totx2_write64(reg_val, otx_ep->hw_addr + SDP_VF_R_IN_ENABLE(q_no));\n+\n+\totx2_info(\"IQ[%d] enable done\", q_no);\n+\n+\treturn 0;\n+}\n+\n+static int\n+otx2_vf_enable_oq(struct otx_ep_device *otx_ep, uint32_t q_no)\n+{\n+\tuint64_t reg_val = 0ull;\n+\n+\treg_val = otx2_read64(otx_ep->hw_addr + SDP_VF_R_OUT_ENABLE(q_no));\n+\treg_val |= 0x1ull;\n+\totx2_write64(reg_val, otx_ep->hw_addr + SDP_VF_R_OUT_ENABLE(q_no));\n+\n+\totx2_info(\"OQ[%d] enable done\", q_no);\n+\n+\treturn 0;\n+}\n+\n+static int\n+otx2_vf_enable_io_queues(struct otx_ep_device *otx_ep)\n+{\n+\tuint32_t q_no = 0;\n+\tint ret;\n+\n+\tfor (q_no = 0; q_no < otx_ep->nb_tx_queues; q_no++) {\n+\t\tret = otx2_vf_enable_iq(otx_ep, q_no);\n+\t\tif (ret)\n+\t\t\treturn ret;\n+\t}\n+\n+\tfor (q_no = 0; q_no < otx_ep->nb_rx_queues; q_no++)\n+\t\totx2_vf_enable_oq(otx_ep, q_no);\n+\n+\treturn 0;\n+}\n+\n+static void\n+otx2_vf_disable_iq(struct otx_ep_device *otx_ep, uint32_t q_no)\n+{\n+\tuint64_t reg_val = 0ull;\n+\n+\t/* Reset the doorbell register for this Input Queue. */\n+\treg_val = otx2_read64(otx_ep->hw_addr + SDP_VF_R_IN_ENABLE(q_no));\n+\treg_val &= ~0x1ull;\n+\n+\totx2_write64(reg_val, otx_ep->hw_addr + SDP_VF_R_IN_ENABLE(q_no));\n+}\n+\n+static void\n+otx2_vf_disable_oq(struct otx_ep_device *otx_ep, uint32_t q_no)\n+{\n+\tvolatile uint64_t reg_val = 0ull;\n+\n+\treg_val = otx2_read64(otx_ep->hw_addr + SDP_VF_R_OUT_ENABLE(q_no));\n+\treg_val &= ~0x1ull;\n+\n+\totx2_write64(reg_val, otx_ep->hw_addr + SDP_VF_R_OUT_ENABLE(q_no));\n+}\n+\n+static void\n+otx2_vf_disable_io_queues(struct otx_ep_device *otx_ep)\n+{\n+\tuint32_t q_no = 0;\n+\n+\tfor (q_no = 0; q_no < otx_ep->sriov_info.rings_per_vf; q_no++) {\n+\t\totx2_vf_disable_iq(otx_ep, q_no);\n+\t\totx2_vf_disable_oq(otx_ep, q_no);\n+\t}\n+}\n+\n static const struct otx_ep_config default_otx2_ep_conf = {\n \t/* IQ attributes */\n \t.iq                        = {\n@@ -247,5 +345,14 @@ otx2_ep_vf_setup_device(struct otx_ep_device *otx_ep)\n \n \totx_ep->fn_list.setup_device_regs   = otx2_vf_setup_device_regs;\n \n+\totx_ep->fn_list.enable_io_queues    = otx2_vf_enable_io_queues;\n+\totx_ep->fn_list.disable_io_queues   = otx2_vf_disable_io_queues;\n+\n+\totx_ep->fn_list.enable_iq           = otx2_vf_enable_iq;\n+\totx_ep->fn_list.disable_iq          = otx2_vf_disable_iq;\n+\n+\totx_ep->fn_list.enable_oq           = otx2_vf_enable_oq;\n+\totx_ep->fn_list.disable_oq          = otx2_vf_disable_oq;\n+\n \treturn 0;\n }\ndiff --git a/drivers/net/octeontx_ep/otx_ep_common.h b/drivers/net/octeontx_ep/otx_ep_common.h\nindex 25d18834b..cb42e3de0 100644\n--- a/drivers/net/octeontx_ep/otx_ep_common.h\n+++ b/drivers/net/octeontx_ep/otx_ep_common.h\n@@ -19,6 +19,7 @@\n #define OTX_EP_PCI_RING_ALIGN   65536\n #define SDP_PKIND 40\n #define SDP_OTX2_PKIND 57\n+#define OTX_EP_BUSY_LOOP_COUNT      (10000)\n #define OTX_EP_MAX_IOQS_PER_VF 8\n \n #define otx_ep_info(fmt, args...)\t\t\t\t\\\n@@ -374,7 +375,14 @@ struct otx_ep_fn_list {\n \n \tvoid (*setup_device_regs)(struct otx_ep_device *otx_ep);\n \n+\tint (*enable_io_queues)(struct otx_ep_device *otx_ep);\n \tvoid (*disable_io_queues)(struct otx_ep_device *otx_ep);\n+\n+\tint (*enable_iq)(struct otx_ep_device *otx_ep, uint32_t q_no);\n+\tvoid (*disable_iq)(struct otx_ep_device *otx_ep, uint32_t q_no);\n+\n+\tint (*enable_oq)(struct otx_ep_device *otx_ep, uint32_t q_no);\n+\tvoid (*disable_oq)(struct otx_ep_device *otx_ep, uint32_t q_no);\n };\n \n /* OTX_EP EP VF device data structure */\ndiff --git a/drivers/net/octeontx_ep/otx_ep_ethdev.c b/drivers/net/octeontx_ep/otx_ep_ethdev.c\nindex 58bf6e6ae..84dd1e96a 100644\n--- a/drivers/net/octeontx_ep/otx_ep_ethdev.c\n+++ b/drivers/net/octeontx_ep/otx_ep_ethdev.c\n@@ -51,6 +51,46 @@ otx_ep_dev_info_get(struct rte_eth_dev *eth_dev,\n \treturn 0;\n }\n \n+static int\n+otx_ep_dev_start(struct rte_eth_dev *eth_dev)\n+{\n+\tstruct otx_ep_device *otx_epvf;\n+\tunsigned int q;\n+\tint ret;\n+\n+\totx_epvf = (struct otx_ep_device *)OTX_EP_DEV(eth_dev);\n+\t/* Enable IQ/OQ for this device */\n+\tret = otx_epvf->fn_list.enable_io_queues(otx_epvf);\n+\tif (ret) {\n+\t\totx_ep_err(\"IOQ enable failed\\n\");\n+\t\treturn ret;\n+\t}\n+\n+\tfor (q = 0; q < otx_epvf->nb_rx_queues; q++) {\n+\t\trte_write32(otx_epvf->droq[q]->nb_desc,\n+\t\t\t    otx_epvf->droq[q]->pkts_credit_reg);\n+\n+\t\trte_wmb();\n+\t\totx_ep_info(\"OQ[%d] dbells [%d]\\n\", q,\n+\t\trte_read32(otx_epvf->droq[q]->pkts_credit_reg));\n+\t}\n+\n+\totx_ep_info(\"dev started\\n\");\n+\n+\treturn 0;\n+}\n+\n+/* Stop device and disable input/output functions */\n+static int\n+otx_ep_dev_stop(struct rte_eth_dev *eth_dev)\n+{\n+\tstruct otx_ep_device *otx_epvf = OTX_EP_DEV(eth_dev);\n+\n+\totx_epvf->fn_list.disable_io_queues(otx_epvf);\n+\n+\treturn 0;\n+}\n+\n static int\n otx_ep_chip_specific_setup(struct otx_ep_device *otx_epvf)\n {\n@@ -292,6 +332,8 @@ otx_ep_tx_queue_release(void *txq)\n /* Define our ethernet definitions */\n static const struct eth_dev_ops otx_ep_eth_dev_ops = {\n \t.dev_configure\t\t= otx_ep_dev_configure,\n+\t.dev_start\t\t= otx_ep_dev_start,\n+\t.dev_stop\t\t= otx_ep_dev_stop,\n \t.rx_queue_setup\t        = otx_ep_rx_queue_setup,\n \t.rx_queue_release\t= otx_ep_rx_queue_release,\n \t.tx_queue_setup\t        = otx_ep_tx_queue_setup,\n@@ -309,6 +351,8 @@ otx_epdev_exit(struct rte_eth_dev *eth_dev)\n \n \totx_epvf = OTX_EP_DEV(eth_dev);\n \n+\totx_epvf->fn_list.disable_io_queues(otx_epvf);\n+\n \tnum_queues = otx_epvf->nb_rx_queues;\n \tfor (q = 0; q < num_queues; q++) {\n \t\tif (otx_ep_delete_oqs(otx_epvf, q)) {\ndiff --git a/drivers/net/octeontx_ep/otx_ep_vf.c b/drivers/net/octeontx_ep/otx_ep_vf.c\nindex 0a27b556c..c39a7010c 100644\n--- a/drivers/net/octeontx_ep/otx_ep_vf.c\n+++ b/drivers/net/octeontx_ep/otx_ep_vf.c\n@@ -202,6 +202,124 @@ otx_ep_setup_oq_regs(struct otx_ep_device *otx_ep, uint32_t oq_no)\n \t}\n }\n \n+static int\n+otx_ep_enable_iq(struct otx_ep_device *otx_ep, uint32_t q_no)\n+{\n+\tuint64_t loop = OTX_EP_BUSY_LOOP_COUNT;\n+\tuint64_t reg_val = 0ull;\n+\n+\t/* Resetting doorbells during IQ enabling also to handle abrupt\n+\t * guest reboot. IQ reset does not clear the doorbells.\n+\t */\n+\totx_ep_write64(0xFFFFFFFF, otx_ep->hw_addr,\n+\t\t       OTX_EP_R_IN_INSTR_DBELL(q_no));\n+\n+\twhile (((rte_read64(otx_ep->hw_addr +\n+\t\t OTX_EP_R_IN_INSTR_DBELL(q_no))) != 0ull) && loop--) {\n+\t\trte_delay_ms(1);\n+\t}\n+\n+\tif (loop == 0) {\n+\t\totx_ep_err(\"dbell reset failed\\n\");\n+\t\treturn -EIO;\n+\t}\n+\n+\n+\treg_val = rte_read64(otx_ep->hw_addr + OTX_EP_R_IN_ENABLE(q_no));\n+\treg_val |= 0x1ull;\n+\n+\totx_ep_write64(reg_val, otx_ep->hw_addr, OTX_EP_R_IN_ENABLE(q_no));\n+\n+\totx_ep_info(\"IQ[%d] enable done\\n\", q_no);\n+\n+\treturn 0;\n+}\n+\n+static int\n+otx_ep_enable_oq(struct otx_ep_device *otx_ep, uint32_t q_no)\n+{\n+\tuint64_t reg_val = 0ull;\n+\tuint64_t loop = OTX_EP_BUSY_LOOP_COUNT;\n+\n+\t/* Resetting doorbells during IQ enabling also to handle abrupt\n+\t * guest reboot. IQ reset does not clear the doorbells.\n+\t */\n+\totx_ep_write64(0xFFFFFFFF, otx_ep->hw_addr,\n+\t\t       OTX_EP_R_OUT_SLIST_DBELL(q_no));\n+\twhile (((rte_read64(otx_ep->hw_addr +\n+\t\t OTX_EP_R_OUT_SLIST_DBELL(q_no))) != 0ull) && loop--) {\n+\t\trte_delay_ms(1);\n+\t}\n+\tif (loop == 0) {\n+\t\totx_ep_err(\"dbell reset failed\\n\");\n+\t\treturn -EIO;\n+\t}\n+\n+\n+\treg_val = rte_read64(otx_ep->hw_addr + OTX_EP_R_OUT_ENABLE(q_no));\n+\treg_val |= 0x1ull;\n+\totx_ep_write64(reg_val, otx_ep->hw_addr, OTX_EP_R_OUT_ENABLE(q_no));\n+\n+\totx_ep_info(\"OQ[%d] enable done\\n\", q_no);\n+\n+\treturn 0;\n+}\n+\n+static int\n+otx_ep_enable_io_queues(struct otx_ep_device *otx_ep)\n+{\n+\tuint32_t q_no = 0;\n+\tint ret;\n+\n+\tfor (q_no = 0; q_no < otx_ep->nb_tx_queues; q_no++) {\n+\t\tret = otx_ep_enable_iq(otx_ep, q_no);\n+\t\tif (ret)\n+\t\t\treturn ret;\n+\t}\n+\n+\tfor (q_no = 0; q_no < otx_ep->nb_rx_queues; q_no++) {\n+\t\tret = otx_ep_enable_oq(otx_ep, q_no);\n+\t\tif (ret)\n+\t\t\treturn ret;\n+\t}\n+\n+\treturn 0;\n+}\n+\n+static void\n+otx_ep_disable_iq(struct otx_ep_device *otx_ep, uint32_t q_no)\n+{\n+\tuint64_t reg_val = 0ull;\n+\n+\t/* Reset the doorbell register for this Input Queue. */\n+\treg_val = rte_read64(otx_ep->hw_addr + OTX_EP_R_IN_ENABLE(q_no));\n+\treg_val &= ~0x1ull;\n+\n+\totx_ep_write64(reg_val, otx_ep->hw_addr, OTX_EP_R_IN_ENABLE(q_no));\n+}\n+\n+static void\n+otx_ep_disable_oq(struct otx_ep_device *otx_ep, uint32_t q_no)\n+{\n+\tuint64_t reg_val = 0ull;\n+\n+\treg_val = rte_read64(otx_ep->hw_addr + OTX_EP_R_OUT_ENABLE(q_no));\n+\treg_val &= ~0x1ull;\n+\n+\totx_ep_write64(reg_val, otx_ep->hw_addr, OTX_EP_R_OUT_ENABLE(q_no));\n+}\n+\n+static void\n+otx_ep_disable_io_queues(struct otx_ep_device *otx_ep)\n+{\n+\tuint32_t q_no = 0;\n+\n+\tfor (q_no = 0; q_no < otx_ep->sriov_info.rings_per_vf; q_no++) {\n+\t\totx_ep_disable_iq(otx_ep, q_no);\n+\t\totx_ep_disable_oq(otx_ep, q_no);\n+\t}\n+}\n+\n /* OTX_EP default configuration */\n static const struct otx_ep_config default_otx_ep_conf = {\n \t/* IQ attributes */\n@@ -264,5 +382,15 @@ otx_ep_vf_setup_device(struct otx_ep_device *otx_ep)\n \n \totx_ep->fn_list.setup_device_regs   = otx_ep_setup_device_regs;\n \n+\totx_ep->fn_list.enable_io_queues    = otx_ep_enable_io_queues;\n+\totx_ep->fn_list.disable_io_queues   = otx_ep_disable_io_queues;\n+\n+\totx_ep->fn_list.enable_iq           = otx_ep_enable_iq;\n+\totx_ep->fn_list.disable_iq          = otx_ep_disable_iq;\n+\n+\totx_ep->fn_list.enable_oq           = otx_ep_enable_oq;\n+\totx_ep->fn_list.disable_oq          = otx_ep_disable_oq;\n+\n+\n \treturn 0;\n }\ndiff --git a/drivers/net/octeontx_ep/otx_ep_vf.h b/drivers/net/octeontx_ep/otx_ep_vf.h\nindex c6115d37c..f05843557 100644\n--- a/drivers/net/octeontx_ep/otx_ep_vf.h\n+++ b/drivers/net/octeontx_ep/otx_ep_vf.h\n@@ -8,6 +8,7 @@\n \n /* OTX_EP VF IQ Registers */\n #define OTX_EP_R_IN_CONTROL_START         (0x10000)\n+#define OTX_EP_R_IN_ENABLE_START          (0x10010)\n #define OTX_EP_R_IN_INSTR_BADDR_START     (0x10020)\n #define OTX_EP_R_IN_INSTR_RSIZE_START     (0x10030)\n #define OTX_EP_R_IN_INSTR_DBELL_START     (0x10040)\n@@ -17,6 +18,9 @@\n #define OTX_EP_R_IN_CONTROL(ring)  \\\n \t(OTX_EP_R_IN_CONTROL_START + ((ring) * OTX_EP_RING_OFFSET))\n \n+#define OTX_EP_R_IN_ENABLE(ring)   \\\n+\t(OTX_EP_R_IN_ENABLE_START + ((ring) * OTX_EP_RING_OFFSET))\n+\n #define OTX_EP_R_IN_INSTR_BADDR(ring)   \\\n \t(OTX_EP_R_IN_INSTR_BADDR_START + ((ring) * OTX_EP_RING_OFFSET))\n \n",
    "prefixes": [
        "v7",
        "10/12"
    ]
}