Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/125811/?format=api
http://patches.dpdk.org/api/patches/125811/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230405142537.1899973-11-sedara@marvell.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": "<20230405142537.1899973-11-sedara@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230405142537.1899973-11-sedara@marvell.com", "date": "2023-04-05T14:25:36", "name": "[v2,10/10] net/octeon_ep: set secondary process dev ops", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "8b1f44c319afa7cca18cd027423e1a1b220d2c4a", "submitter": { "id": 2729, "url": "http://patches.dpdk.org/api/people/2729/?format=api", "name": "Sathesh B Edara", "email": "sedara@marvell.com" }, "delegate": { "id": 310, "url": "http://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230405142537.1899973-11-sedara@marvell.com/mbox/", "series": [ { "id": 27627, "url": "http://patches.dpdk.org/api/series/27627/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27627", "date": "2023-04-05T14:25:26", "name": "extend octeon ep driver functionality", "version": 2, "mbox": "http://patches.dpdk.org/series/27627/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/125811/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/125811/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 8FE23428D4;\n\tWed, 5 Apr 2023 16:27:01 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E9C0242D5F;\n\tWed, 5 Apr 2023 16:26:00 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id C45FA42D31\n for <dev@dpdk.org>; Wed, 5 Apr 2023 16:25:58 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 3357OL6H006996; Wed, 5 Apr 2023 07:25:58 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3ps4jpjbjh-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 05 Apr 2023 07:25:57 -0700", "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Wed, 5 Apr 2023 07:25:56 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Wed, 5 Apr 2023 07:25:56 -0700", "from localhost.marvell.com (unknown [10.106.27.249])\n by maili.marvell.com (Postfix) with ESMTP id 1CD983F7050;\n Wed, 5 Apr 2023 07:25:56 -0700 (PDT)" ], "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-transfer-encoding : content-type; s=pfpt0220;\n bh=eBY2lP7ntHdXrt3Capn9Nly8pECR0wS9OC3Ol0bphk0=;\n b=gyT4fZfQY9xODcbPUsHHTxsRFgzAmWpZd7K/f3SYU/bQ7P2XGi9692UD3sUq1mUokhsB\n 5AHh2Ob8fseVBMash6GwNQRACdNtycQKAKzot/6YcHYVie07JFyoHRNUaxbjCDQyJ5em\n HbVJJX9llgQG6jPPfKb2lE5FpTyuJvXhwFYGcbnWjTW3GFyiNcGp+6cplR0uqkTs28uv\n GNvenE+5pN6O/yVJVYtPolLS1gPzxotqrxoSP/SEoD30LIdGQ6Go/iNXT7nCcau3mFW5\n sFRmusyyvZZ92QM7FkZaUTUa8lGXajiUyhi9h2uTYKGGycbFIf64k4NeHg+aNgLrYP/f vg==", "From": "Sathesh Edara <sedara@marvell.com>", "To": "<sburla@marvell.com>, <jerinj@marvell.com>, <sedara@marvell.com>, \"Radha\n Mohan Chintakuntla\" <radhac@marvell.com>, Veerasenareddy Burru\n <vburru@marvell.com>, Anatoly Burakov <anatoly.burakov@intel.com>", "CC": "<dev@dpdk.org>", "Subject": "[PATCH v2 10/10] net/octeon_ep: set secondary process dev ops", "Date": "Wed, 5 Apr 2023 07:25:36 -0700", "Message-ID": "<20230405142537.1899973-11-sedara@marvell.com>", "X-Mailer": "git-send-email 2.31.1", "In-Reply-To": "<20230405142537.1899973-1-sedara@marvell.com>", "References": "<20230404141855.1025625-2-sedara@marvell.com>\n <20230405142537.1899973-1-sedara@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "kHIQbol9ABkuKHimkwgClNb9MC_Bo8_1", "X-Proofpoint-ORIG-GUID": "kHIQbol9ABkuKHimkwgClNb9MC_Bo8_1", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22\n definitions=2023-04-05_09,2023-04-05_01,2023-02-09_01", "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": "This patch sets the dev ops and transmit/receive\ncallbacks for secondary process.\n\nSigned-off-by: Sathesh Edara <sedara@marvell.com>\n---\n drivers/net/octeon_ep/otx_ep_ethdev.c | 22 +++++++++++++++++++---\n 1 file changed, 19 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/octeon_ep/otx_ep_ethdev.c b/drivers/net/octeon_ep/otx_ep_ethdev.c\nindex 885fbb475f..a9868909f8 100644\n--- a/drivers/net/octeon_ep/otx_ep_ethdev.c\n+++ b/drivers/net/octeon_ep/otx_ep_ethdev.c\n@@ -527,9 +527,17 @@ otx_ep_dev_stats_get(struct rte_eth_dev *eth_dev,\n static int\n otx_ep_dev_close(struct rte_eth_dev *eth_dev)\n {\n-\tstruct otx_ep_device *otx_epvf = OTX_EP_DEV(eth_dev);\n+\tstruct otx_ep_device *otx_epvf;\n \tuint32_t num_queues, q_no;\n \n+\tif (rte_eal_process_type() != RTE_PROC_PRIMARY) {\n+\t\teth_dev->dev_ops = NULL;\n+\t\teth_dev->rx_pkt_burst = NULL;\n+\t\teth_dev->tx_pkt_burst = NULL;\n+\t\treturn 0;\n+\t}\n+\n+\totx_epvf = OTX_EP_DEV(eth_dev);\n \totx_ep_mbox_send_dev_exit(eth_dev);\n \totx_epvf->fn_list.disable_io_queues(otx_epvf);\n \tnum_queues = otx_epvf->nb_rx_queues;\n@@ -593,8 +601,12 @@ static const struct eth_dev_ops otx_ep_eth_dev_ops = {\n static int\n otx_ep_eth_dev_uninit(struct rte_eth_dev *eth_dev)\n {\n-\tif (rte_eal_process_type() != RTE_PROC_PRIMARY)\n+\tif (rte_eal_process_type() != RTE_PROC_PRIMARY) {\n+\t\teth_dev->dev_ops = NULL;\n+\t\teth_dev->rx_pkt_burst = NULL;\n+\t\teth_dev->tx_pkt_burst = NULL;\n \t\treturn 0;\n+\t}\n \n \teth_dev->dev_ops = NULL;\n \teth_dev->rx_pkt_burst = NULL;\n@@ -642,8 +654,12 @@ otx_ep_eth_dev_init(struct rte_eth_dev *eth_dev)\n \tstruct rte_ether_addr vf_mac_addr;\n \n \t/* Single process support */\n-\tif (rte_eal_process_type() != RTE_PROC_PRIMARY)\n+\tif (rte_eal_process_type() != RTE_PROC_PRIMARY) {\n+\t\teth_dev->dev_ops = &otx_ep_eth_dev_ops;\n+\t\teth_dev->rx_pkt_burst = &otx_ep_recv_pkts;\n+\t\teth_dev->tx_pkt_burst = &otx2_ep_xmit_pkts;\n \t\treturn 0;\n+\t}\n \n \trte_eth_copy_pci_info(eth_dev, pdev);\n \totx_epvf->eth_dev = eth_dev;\n", "prefixes": [ "v2", "10/10" ] }{ "id": 125811, "url": "