Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/83460/?format=api
http://patches.dpdk.org/api/patches/83460/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201103001407.2931963-10-thomas@monjalon.net/", "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": "<20201103001407.2931963-10-thomas@monjalon.net>", "list_archive_url": "https://inbox.dpdk.org/dev/20201103001407.2931963-10-thomas@monjalon.net", "date": "2020-11-03T00:14:00", "name": "[v3,09/16] net/octeontx2: switch Rx timestamp to dynamic mbuf field", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "1d11b2d392eedd067bb9cf3af58773622718ea0f", "submitter": { "id": 685, "url": "http://patches.dpdk.org/api/people/685/?format=api", "name": "Thomas Monjalon", "email": "thomas@monjalon.net" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201103001407.2931963-10-thomas@monjalon.net/mbox/", "series": [ { "id": 13585, "url": "http://patches.dpdk.org/api/series/13585/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13585", "date": "2020-11-03T00:13:51", "name": "remove mbuf timestamp", "version": 3, "mbox": "http://patches.dpdk.org/series/13585/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/83460/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/83460/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 273FBA04E7;\n\tTue, 3 Nov 2020 01:17:29 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id F26F7BBA4;\n\tTue, 3 Nov 2020 01:14:45 +0100 (CET)", "from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com\n [64.147.123.20]) by dpdk.org (Postfix) with ESMTP id 81A30ACAA\n for <dev@dpdk.org>; Tue, 3 Nov 2020 01:14:44 +0100 (CET)", "from compute2.internal (compute2.nyi.internal [10.202.2.42])\n by mailout.west.internal (Postfix) with ESMTP id 2B080B17;\n Mon, 2 Nov 2020 19:14:42 -0500 (EST)", "from mailfrontend2 ([10.202.2.163])\n by compute2.internal (MEProxy); Mon, 02 Nov 2020 19:14:42 -0500", "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id A29223064683;\n Mon, 2 Nov 2020 19:14:40 -0500 (EST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding; s=fm2; bh=rePCm52R8+Kz0\n IrhjasMcaZcJ+s9vjFL1RYQwKD4dqo=; b=Yh33Eoi41bquPBrfN6ACAbyAPYVOp\n U1i1rV+YutFdnwJ6itwNPYckUvwwsOw1oN2iU/dijFeC7JsUrcKcTQDZYk2jGFPO\n YwpKKAlcavxTHEVcfe2kywRrZrEIJquTwKuiGbRx5GG7AWrJZkMidsQLnLx3OOL1\n BzaPm0jbWs4lZmgStUJN8ot8iWSeeBOZhj9qrctAVRBfq7481fyhrg+3U5uQcjIC\n +oZFD/v2+H65FN74YL+fqqZNx4Alw7M/UkOCn0kwlzsKBeAiZ9+qhu6FmC1e1f+0\n U87p4nu+QwUFvusbvcBRFotF2UmMolyDlZonWnx+rpIX3NaukNGpgJIRQ==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:content-transfer-encoding:date:from\n :in-reply-to:message-id:mime-version:references:subject:to\n :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=\n fm1; bh=rePCm52R8+Kz0IrhjasMcaZcJ+s9vjFL1RYQwKD4dqo=; b=MiOoYYBf\n 6ItIQjyZq9cTAhWUzJLJZ172VDBjz2kOFSrRl/9IbdxryspJNFTzyWiofvFIT7lz\n hnPfU/GCFuETSCHxsL1wCZP6pDojtBkWyYOnxGAldrqwd2/ODw6Qgyx1nMKa/frO\n XUtGMlR1VvKKyn3GHF2CCqrdLs8dKabYKUKYcRyBZqF9cQsIvjmMITi1WZ/NTMdb\n Ps5iH77L3AmaRAxysXCytWpATsWWuOkrxXxwIkqRVaL8Ua4FgxpGerSanOX79+92\n FWYG/da/7nEwKSWluy/GfE8o38yA4yF8hqG4/aDYFCZF73Oir0B2YkOF8CBNudpX\n MK21BeOyXv04AA==" ], "X-ME-Sender": "<xms:8aCgX3CYGQQGLUZAj86CazlHiIcUpb_A2HOn5Inbm03vsOEgcr-F-Q>\n <xme:8aCgX9ijEK1btySzwIr8_XwMLrY13KsUxq-WcH0jaMma0CLXxgcyqO1IRwoCg7XCA\n vS2GNY-MLQ0t-6iYg>", "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedujedruddtvddgudejucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne\n cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr\n shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg\n ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg\n uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf\n hiiigvpeejnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl\n ohhnrdhnvght", "X-ME-Proxy": "<xmx:8aCgXykryvWbiK_TiC7sq9HVvFzPZijZ4BueQhPjnUDgO31_JKJz-Q>\n <xmx:8aCgX5yiiuZHuqZ4pU8avEA1xK1oUc3yWsaOY5Xb1NNEYszeHHVHXw>\n <xmx:8aCgX8QoMyM39NXMI7HixGo245kTthZkegO0-zU7jIDA4qPaR43-2g>\n <xmx:8aCgXxTUykLgnUe3ryhv7p28ds2fpTvX-JzF9a3XPgb_RDri772HLA>", "From": "Thomas Monjalon <thomas@monjalon.net>", "To": "dev@dpdk.org", "Cc": "ferruh.yigit@intel.com, david.marchand@redhat.com,\n bruce.richardson@intel.com, olivier.matz@6wind.com,\n andrew.rybchenko@oktetlabs.ru, jerinj@marvell.com, viacheslavo@nvidia.com,\n Nithin Dabilpuram <ndabilpuram@marvell.com>,\n Kiran Kumar K <kirankumark@marvell.com>", "Date": "Tue, 3 Nov 2020 01:14:00 +0100", "Message-Id": "<20201103001407.2931963-10-thomas@monjalon.net>", "X-Mailer": "git-send-email 2.28.0", "In-Reply-To": "<20201103001407.2931963-1-thomas@monjalon.net>", "References": "<20201029092751.3837177-1-thomas@monjalon.net>\n <20201103001407.2931963-1-thomas@monjalon.net>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v3 09/16] net/octeontx2: switch Rx timestamp to\n\tdynamic mbuf field", "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": "The mbuf timestamp is moved to a dynamic field\nin order to allow removal of the deprecated static field.\nThe related mbuf flag is also replaced.\n\nThe dynamic offset and flag are stored in struct otx2_timesync_info\nto favor cache locality.\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\n---\n drivers/net/octeontx2/otx2_ethdev.c | 10 ++++++++++\n drivers/net/octeontx2/otx2_rx.h | 19 ++++++++++++++++---\n 2 files changed, 26 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/octeontx2/otx2_ethdev.c b/drivers/net/octeontx2/otx2_ethdev.c\nindex cfb733a4b5..f6962be9b2 100644\n--- a/drivers/net/octeontx2/otx2_ethdev.c\n+++ b/drivers/net/octeontx2/otx2_ethdev.c\n@@ -2219,6 +2219,16 @@ otx2_nix_dev_start(struct rte_eth_dev *eth_dev)\n \telse\n \t\totx2_nix_timesync_disable(eth_dev);\n \n+\tif (dev->rx_offload_flags & NIX_RX_OFFLOAD_TSTAMP_F) {\n+\t\trc = rte_mbuf_dyn_rx_timestamp_register(\n+\t\t\t\t&dev->tstamp.tstamp_dynfield_offset,\n+\t\t\t\t&dev->tstamp.rx_tstamp_dynflag);\n+\t\tif (rc != 0) {\n+\t\t\totx2_err(\"Failed to register Rx timestamp field/flag\");\n+\t\t\treturn -rte_errno;\n+\t\t}\n+\t}\n+\n \t/* Update VF about data off shifted by 8 bytes if PTP already\n \t * enabled in PF owning this VF\n \t */\ndiff --git a/drivers/net/octeontx2/otx2_rx.h b/drivers/net/octeontx2/otx2_rx.h\nindex 61a5c436dd..926f614a4e 100644\n--- a/drivers/net/octeontx2/otx2_rx.h\n+++ b/drivers/net/octeontx2/otx2_rx.h\n@@ -49,6 +49,8 @@ struct otx2_timesync_info {\n \tuint64_t\trx_tstamp;\n \trte_iova_t\ttx_tstamp_iova;\n \tuint64_t\t*tx_tstamp;\n+\tuint64_t\trx_tstamp_dynflag;\n+\tint\t\ttstamp_dynfield_offset;\n \tuint8_t\t\ttx_ready;\n \tuint8_t\t\trx_ready;\n } __rte_cache_aligned;\n@@ -63,6 +65,14 @@ union mbuf_initializer {\n \tuint64_t value;\n };\n \n+static inline rte_mbuf_timestamp_t *\n+otx2_timestamp_dynfield(struct rte_mbuf *mbuf,\n+\t\tstruct otx2_timesync_info *info)\n+{\n+\treturn RTE_MBUF_DYNFIELD(mbuf,\n+\t\tinfo->tstamp_dynfield_offset, rte_mbuf_timestamp_t *);\n+}\n+\n static __rte_always_inline void\n otx2_nix_mbuf_to_tstamp(struct rte_mbuf *mbuf,\n \t\t\tstruct otx2_timesync_info *tstamp, const uint16_t flag,\n@@ -77,15 +87,18 @@ otx2_nix_mbuf_to_tstamp(struct rte_mbuf *mbuf,\n \t\t/* Reading the rx timestamp inserted by CGX, viz at\n \t\t * starting of the packet data.\n \t\t */\n-\t\tmbuf->timestamp = rte_be_to_cpu_64(*tstamp_ptr);\n+\t\t*otx2_timestamp_dynfield(mbuf, tstamp) =\n+\t\t\t\trte_be_to_cpu_64(*tstamp_ptr);\n \t\t/* PKT_RX_IEEE1588_TMST flag needs to be set only in case\n \t\t * PTP packets are received.\n \t\t */\n \t\tif (mbuf->packet_type == RTE_PTYPE_L2_ETHER_TIMESYNC) {\n-\t\t\ttstamp->rx_tstamp = mbuf->timestamp;\n+\t\t\ttstamp->rx_tstamp =\n+\t\t\t\t\t*otx2_timestamp_dynfield(mbuf, tstamp);\n \t\t\ttstamp->rx_ready = 1;\n \t\t\tmbuf->ol_flags |= PKT_RX_IEEE1588_PTP |\n-\t\t\t\tPKT_RX_IEEE1588_TMST | PKT_RX_TIMESTAMP;\n+\t\t\t\tPKT_RX_IEEE1588_TMST |\n+\t\t\t\ttstamp->rx_tstamp_dynflag;\n \t\t}\n \t}\n }\n", "prefixes": [ "v3", "09/16" ] }{ "id": 83460, "url": "