Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/117606/?format=api
http://patches.dpdk.org/api/patches/117606/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221007174336.54354-27-andrew.boyer@amd.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": "<20221007174336.54354-27-andrew.boyer@amd.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221007174336.54354-27-andrew.boyer@amd.com", "date": "2022-10-07T17:43:27", "name": "[26/35] net/ionic: add Rx descriptor status functions", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "62da1540f7411bd47fad44ac2bc2b8071f755e0c", "submitter": { "id": 2861, "url": "http://patches.dpdk.org/api/people/2861/?format=api", "name": "Andrew Boyer", "email": "Andrew.Boyer@amd.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/20221007174336.54354-27-andrew.boyer@amd.com/mbox/", "series": [ { "id": 25037, "url": "http://patches.dpdk.org/api/series/25037/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=25037", "date": "2022-10-07T17:43:01", "name": "net/ionic: updates for 22.11 release", "version": 1, "mbox": "http://patches.dpdk.org/series/25037/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/117606/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/117606/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 982B5A04FD;\n\tFri, 7 Oct 2022 19:47:20 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E39C942BF2;\n\tFri, 7 Oct 2022 19:45:04 +0200 (CEST)", "from NAM12-BN8-obe.outbound.protection.outlook.com\n (mail-bn8nam12on2040.outbound.protection.outlook.com [40.107.237.40])\n by mails.dpdk.org (Postfix) with ESMTP id 776F542836\n for <dev@dpdk.org>; Fri, 7 Oct 2022 19:45:02 +0200 (CEST)", "from MW4PR03CA0347.namprd03.prod.outlook.com (2603:10b6:303:dc::22)\n by MN0PR12MB6151.namprd12.prod.outlook.com (2603:10b6:208:3c5::13)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.34; Fri, 7 Oct\n 2022 17:45:00 +0000", "from CO1NAM11FT068.eop-nam11.prod.protection.outlook.com\n (2603:10b6:303:dc:cafe::b3) by MW4PR03CA0347.outlook.office365.com\n (2603:10b6:303:dc::22) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.26 via Frontend\n Transport; Fri, 7 Oct 2022 17:45:00 +0000", "from SATLEXMB04.amd.com (165.204.84.17) by\n CO1NAM11FT068.mail.protection.outlook.com (10.13.175.142) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.20.5709.10 via Frontend Transport; Fri, 7 Oct 2022 17:45:00 +0000", "from driver-dev1.pensando.io (10.180.168.240) by SATLEXMB04.amd.com\n (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 7 Oct\n 2022 12:44:57 -0500" ], "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=lgaxV+LYF5BTw6pfV3Jl1sMU7AELaHsfnn2dL5idvi3r2vnA19Zx9gY0SCmpqOB0FSqvR4sV1HMorGTerf9yLiONX/iGBrWMYo2RJiUJ4EnjS5zwU2BfKEdqPp59NZ7CRvI7Ka860qNxjhXi7msHMIzrJ86fWFMIAEcRzqggvJu9l6dGwsw6HlWwSf0EEfOWDqxfACKYFO38BXKUp+BE7fVZh+sEWIg5jfbrgG2zmyys80Wjx5d01c3BRd2vqISvTHvaubtJCVwm8EUs+jMkzrakVTNItN6A0P26zr0DAVMaQ9UgbpflptLrdwxOMuyOEfz9RmzBkCoQbTs/gLgBwQ==", "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=GkaExYGp1aLDcv+8822zRe/acz2t+cyftVzjwv5dzq0=;\n b=nG+n7HavRJhESgwjDSI5bo3fzedsQQ12ukwQ5T/XE6Erhog9Xyoj5oOSUiuAq8ONxAENPysGujX9itsmHYC5hs0yCzKEmaZ6qnY8pIZJjYhXvt8bSZrdCZHHdiRBF3IrI7AfGYH0K++vZrlLLntqwX8UIJ6fW4VH118JZ2gcxnmtXawywhITC5OV5pgyKJT9iwK8riANRku81w8+eX6qIpL77EGrARgI0+xqk6GjZ0r2Pj2tf9ixSaCo85iAxkkQky5VH3nD0jLLHVyzW+sSyqc+T3nlmmdMsdHEOdxOmp59GcrC6Z+KUOUF4rxXDXyXimc86+MX6kWKRpApLKhJ0g==", "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass\n (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com;\n dkim=none (message not signed); arc=none", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=GkaExYGp1aLDcv+8822zRe/acz2t+cyftVzjwv5dzq0=;\n b=5TKFMWcVd8ZcFmx+xViCeLKvC70qpmkO5egHjiQR5J4O4NoJ/YwUubg1AuuZn6tW1U2rJbcr+Tha83QxzRT25YKaCIXdqJhLEhepAIl1tqT0sEaKskLPBscBeBMUIwi9/+4t2HVi3nAD6SaXR/gz7tJ9KQodWbwH1/YXCGJPZyc=", "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 165.204.84.17)\n smtp.mailfrom=amd.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=amd.com;", "Received-SPF": "Pass (protection.outlook.com: domain of amd.com designates\n 165.204.84.17 as permitted sender) receiver=protection.outlook.com;\n client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C", "From": "Andrew Boyer <andrew.boyer@amd.com>", "To": "<dev@dpdk.org>", "CC": "Andrew Boyer <andrew.boyer@amd.com>, Allen Hubbe <allen.hubbe@amd.com>", "Subject": "[PATCH 26/35] net/ionic: add Rx descriptor status functions", "Date": "Fri, 7 Oct 2022 10:43:27 -0700", "Message-ID": "<20221007174336.54354-27-andrew.boyer@amd.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20221007174336.54354-1-andrew.boyer@amd.com>", "References": "<20221007174336.54354-1-andrew.boyer@amd.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.180.168.240]", "X-ClientProxiedBy": "SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com\n (10.181.40.145)", "X-EOPAttributedMessage": "0", "X-MS-PublicTrafficType": "Email", "X-MS-TrafficTypeDiagnostic": "CO1NAM11FT068:EE_|MN0PR12MB6151:EE_", "X-MS-Office365-Filtering-Correlation-Id": "cbca3cc7-cba8-4740-a6cc-08daa88ba831", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "BCL:0;", "X-Microsoft-Antispam-Message-Info": "\n cQdInWzmDrzCuQJcjLrQ7BKq8WLdqZw65CxmNBeVWeGUMt8DfoVByEiAldGS7uTFDawHdRbsRLV+fEBCUa071jcV16yVG6uVswBYbTNomiNeu07zmJf0qC4klkBCHuh3Pl7Ahm2AJaL2hjr8Bd9gUNDd40BGEsdLSw/vhTKYDxg2nCT4z3rWKMtgy+3wCtSVcR4P3A3b2loyVCEl+c/1U8oDCSPM+jE580nHWn+uO1uhXHk6b+nssoxSMjBTMqxq2O8Ar/5VYWKdWka5ryvRp1AOJp/yH/YABMHgK3ShuLEmpN6hPssGTVJQ1x3p0haCtjBmwbLjrNI2We77qng2u4ZJLn8znwfhjLLeOzVgtrzPYbVyx9UPpXF4DW5SHhZ5Cl1o8cHlsAZb1Q2TOfnb9f532CpPUdx+poZLFgioCm72plbc3LTxz1uWdK28VqJ6p3a89KJDpcjbRp2iJRVeOAONom/NOxj7Txppj2BpkCtnQWcgr2lJ7MmT7Yuyxrg9BGkD4Bz/HaZNOOXOchleFhDbSVbMfHimBoT4j/wsQ6h47J0u4nugtdfHBulo9UmFz9z/YhtUX2S1X6xzwclyCTrmDrBgaL6qt4w0MgI+ezc2Od8BX9f0Vg3BKBiUI6TnR8cyoulU8n345l6qRnJ0c+RAMmcP+FLfY/4R+O+yo96bMEWrN760pxga4+VH8DV5xHUUfp3X1CCtSoo9Z1YNOOKPSCEOGSdXuTy4s7GEAcaOPHjMj3Nus/453ZXpgPtTlDw/YzmK4DkC+aHPafj446ZYaCADqLV/s0h/6XEPlWQ=", "X-Forefront-Antispam-Report": "CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230022)(4636009)(136003)(396003)(376002)(346002)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(26005)(82740400003)(8676002)(6666004)(40460700003)(356005)(70206006)(4326008)(70586007)(81166007)(478600001)(36756003)(36860700001)(2616005)(86362001)(1076003)(316002)(54906003)(82310400005)(336012)(186003)(6916009)(47076005)(16526019)(426003)(2906002)(8936002)(41300700001)(40480700001)(44832011)(5660300002)(36900700001);\n DIR:OUT; SFP:1101;", "X-OriginatorOrg": "amd.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "07 Oct 2022 17:45:00.0374 (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n cbca3cc7-cba8-4740-a6cc-08daa88ba831", "X-MS-Exchange-CrossTenant-Id": "3dd8961f-e488-4e60-8e11-a82d994e183d", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17];\n Helo=[SATLEXMB04.amd.com]", "X-MS-Exchange-CrossTenant-AuthSource": "\n CO1NAM11FT068.eop-nam11.prod.protection.outlook.com", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "MN0PR12MB6151", "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": "These may be useful for clients.\n\nSigned-off-by: Andrew Boyer <andrew.boyer@amd.com>\nSigned-off-by: Allen Hubbe <allen.hubbe@amd.com>\n---\n doc/guides/nics/features/ionic.ini | 1 +\n doc/guides/rel_notes/release_22_11.rst | 1 +\n drivers/net/ionic/ionic_ethdev.c | 2 ++\n drivers/net/ionic/ionic_rxtx.c | 39 ++++++++++++++++++++++++++\n drivers/net/ionic/ionic_rxtx.h | 2 ++\n 5 files changed, 45 insertions(+)", "diff": "diff --git a/doc/guides/nics/features/ionic.ini b/doc/guides/nics/features/ionic.ini\nindex 77947bfd22..e01ba87135 100644\n--- a/doc/guides/nics/features/ionic.ini\n+++ b/doc/guides/nics/features/ionic.ini\n@@ -27,6 +27,7 @@ CRC offload = Y\n L3 checksum offload = Y\n L4 checksum offload = Y\n Packet type parsing = Y\n+Rx descriptor status = Y\n Basic stats = Y\n Extended stats = Y\n Stats per queue = Y\ndiff --git a/doc/guides/rel_notes/release_22_11.rst b/doc/guides/rel_notes/release_22_11.rst\nindex 5c3bd15e55..d2e82979e6 100644\n--- a/doc/guides/rel_notes/release_22_11.rst\n+++ b/doc/guides/rel_notes/release_22_11.rst\n@@ -86,6 +86,7 @@ New Features\n * Enhanced data path to provide substantial performance improvements.\n * Added support for mbuf fast free.\n * Added support for advertising packet types.\n+ * Added support for descriptor status functions.\n \n Removed Items\n -------------\ndiff --git a/drivers/net/ionic/ionic_ethdev.c b/drivers/net/ionic/ionic_ethdev.c\nindex 39bbe60d79..7ac7006d88 100644\n--- a/drivers/net/ionic/ionic_ethdev.c\n+++ b/drivers/net/ionic/ionic_ethdev.c\n@@ -984,6 +984,8 @@ eth_ionic_dev_init(struct rte_eth_dev *eth_dev, void *init_params)\n \teth_dev->tx_pkt_burst = &ionic_xmit_pkts;\n \teth_dev->tx_pkt_prepare = &ionic_prep_pkts;\n \n+\teth_dev->rx_descriptor_status = ionic_dev_rx_descriptor_status;\n+\n \t/* Multi-process not supported, primary does initialization anyway */\n \tif (rte_eal_process_type() != RTE_PROC_PRIMARY)\n \t\treturn 0;\ndiff --git a/drivers/net/ionic/ionic_rxtx.c b/drivers/net/ionic/ionic_rxtx.c\nindex 24fd8fcf04..64cbbd9815 100644\n--- a/drivers/net/ionic/ionic_rxtx.c\n+++ b/drivers/net/ionic/ionic_rxtx.c\n@@ -1235,3 +1235,42 @@ ionic_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,\n \n \treturn rx_svc.nb_rx;\n }\n+\n+int\n+ionic_dev_rx_descriptor_status(void *rx_queue, uint16_t offset)\n+{\n+\tstruct ionic_rx_qcq *rxq = rx_queue;\n+\tstruct ionic_qcq *qcq = &rxq->qcq;\n+\tstruct ionic_rxq_comp *cq_desc;\n+\tuint16_t mask, head, tail, pos;\n+\tbool done_color;\n+\n+\tmask = qcq->q.size_mask;\n+\n+\t/* offset must be within the size of the ring */\n+\tif (offset > mask)\n+\t\treturn -EINVAL;\n+\n+\thead = qcq->q.head_idx;\n+\ttail = qcq->q.tail_idx;\n+\n+\t/* offset is beyond what is posted */\n+\tif (offset >= ((head - tail) & mask))\n+\t\treturn RTE_ETH_RX_DESC_UNAVAIL;\n+\n+\t/* interested in this absolute position in the rxq */\n+\tpos = (tail + offset) & mask;\n+\n+\t/* rx cq position == rx q position */\n+\tcq_desc = qcq->cq.base;\n+\tcq_desc = &cq_desc[pos];\n+\n+\t/* expected done color at this position */\n+\tdone_color = qcq->cq.done_color != (pos < tail);\n+\n+\t/* has the hw indicated the done color at this position? */\n+\tif (color_match(cq_desc->pkt_type_color, done_color))\n+\t\treturn RTE_ETH_RX_DESC_DONE;\n+\n+\treturn RTE_ETH_RX_DESC_AVAIL;\n+}\ndiff --git a/drivers/net/ionic/ionic_rxtx.h b/drivers/net/ionic/ionic_rxtx.h\nindex de51f21012..465001a063 100644\n--- a/drivers/net/ionic/ionic_rxtx.h\n+++ b/drivers/net/ionic/ionic_rxtx.h\n@@ -40,6 +40,8 @@ void ionic_rxq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n void ionic_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n \tstruct rte_eth_txq_info *qinfo);\n \n+int ionic_dev_rx_descriptor_status(void *rx_queue, uint16_t offset);\n+\n const uint32_t *ionic_dev_supported_ptypes_get(struct rte_eth_dev *dev);\n \n #endif /* _IONIC_RXTX_H_ */\n", "prefixes": [ "26/35" ] }{ "id": 117606, "url": "