From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DF6EBA0C44; Mon, 14 Jun 2021 15:53:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5EC084067A; Mon, 14 Jun 2021 15:53:05 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2054.outbound.protection.outlook.com [40.107.236.54]) by mails.dpdk.org (Postfix) with ESMTP id 319C74003F; Mon, 14 Jun 2021 15:53:03 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fp/ugAVhffnY3F9PF+9MSu3lKEvtosRgNxGtSOwoa4mJcTS0MzzLQ97HDyFbClLrW5956AnQiL1XEGVyUqRUfw+s2Qjbkpjg08HJd6WK6D1XzovC4ZbGtlqTRzYG25kuNFKDSpIdE3Axl9RZ10ljWs69qUu0hGTcgleSj8fq/0Q3CrNYUpLfvSO5ys7QWevryM9jNaLJfH/ftvW+uf2QjROzMa5j9XLXSp7wSMynPwj+4jxHq8mPfbO/4bR6y0cYYZf6nXQHkbyShvE+fkvKy9LZh6X4StCV6IVBbkXFukSdRKZbwttRE3pfhwv4Adn6F+d82cMgjnGxB9XH2cIDVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=32j3Dq0gTHlcZ5IGei5RmA/pUu3POY4EdXdlHS1X+L8=; b=dB1M8+rpMqSTMT887+x8zMHGsYKm7RC7EmZxsYGrIussMc2tGQ6qhNorqfX0ti+LfDUs7dsygG7HVgk+FEsL65eKaqn8ApBKz11g0VDw7lW5nxDN+LdJ+v3tV8IwLZNjXsPcb02B+Yh0ueb3WlzIZWhV+L2RTI4j1q3Am1LSDk4d/F8n4fBDvS1+wnN1D3d9cC3rIv6GJtbDh0/kdmChYG6ygEbtdRODALGFv5m/MLbxj53XDd+KswOYqZcnjkRH7yaE5CHtWiNy9GGEvF8So0Plf/WbwKYegchXRGFYFSuAlsHtyZN7G1Bts5dtzspxrE6KXJdqVxJOGlpePN+s8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=32j3Dq0gTHlcZ5IGei5RmA/pUu3POY4EdXdlHS1X+L8=; b=DFq9Xvstl7fssD7/EtNt5WkPqpm2fhruxnv2TT6mLkG0Mb6GLAK+iqvnqTUcbAb8PVM8NmEhAWLk+wfxaq2AUQ9zQofAgcjXcsXY7kAdbEz07o3BcVj4CMCeglb1jyx0muqrqLg1bVEjbKTL2SggGGxxVVcauHxST7jLONZOOugkF/5qnl+TYA6pIkj3mkNuO1//mBEkvVHbOk8Si71+IxGBviP9alZ5wi6goend5AfTQqMD0KzXGNhPnftt9lhp5LlQqcvl/RdZXwSJE+mJ/+0xE1mFmgJsV8fOBK3xUirrgrw8mclvvaG8z8K6mCb1HbPFyKE1svHnsfRy9TVACA== Received: from DM5PR08CA0051.namprd08.prod.outlook.com (2603:10b6:4:60::40) by BYAPR12MB3000.namprd12.prod.outlook.com (2603:10b6:a03:d7::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.24; Mon, 14 Jun 2021 13:53:01 +0000 Received: from DM6NAM11FT056.eop-nam11.prod.protection.outlook.com (2603:10b6:4:60:cafe::b7) by DM5PR08CA0051.outlook.office365.com (2603:10b6:4:60::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Mon, 14 Jun 2021 13:53:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT056.mail.protection.outlook.com (10.13.173.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4219.21 via Frontend Transport; Mon, 14 Jun 2021 13:53:01 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 14 Jun 2021 13:52:59 +0000 From: Viacheslav Ovsiienko To: CC: , , , , Date: Mon, 14 Jun 2021 16:52:42 +0300 Message-ID: <20210614135242.6842-1-viacheslavo@nvidia.com> X-Mailer: git-send-email 2.18.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0cd3315b-e81c-4d12-7c03-08d92f3bb982 X-MS-TrafficTypeDiagnostic: BYAPR12MB3000: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7L1ZHQ2MiUgA9RycTfzRTPwHlJ3o06CAsljFWYbHyn3RxrzZa1IfBqoqYF9XAS2raW6DocyjxY5fDlpHVRWGuKrED7unOa8IgVUzoVIBmSwB2shfrE489ePYNMLlS4bI4bGylPfWLaPQIUht0KuSoD0MDyJ22SMbDpJl0NDQwngglRCDny6/SALO6t2/kZerrpVD96yV5R8jd5ydhTc7OBdDrK/olNLEgckFLex4V3v+ZfjjQO6KSv9SHgCMH2Xi87nA+0MZ86NMdMf2plt2lPAq/CEqWDDfyy3d0cYByWPwuiBxDOlH8R5524zFMgHfzKUTpMhaf3ZrkmSNsYnSVbHY7VWjacV+kNrbyt0WZjtz/CFYO5VhcE7wLnlrYhRud9RASLY4eLRiS1ThP9vVPmNeIfce74pCx75DcsenOdcbCBdp4cVWY2JElcejD67/XouNEbPciIjhGsWBavq8kxxRRjceuxKwGbvp3HmfG8u9d5pOXJbPK51/LmKVEdWknfn5Pmxa24MDKK60VxZWbx7N3dhjPNp/1pxE5SarfX7M/+syetZOuidwtmst4fTiUcwawbr//F/pPcBQAf2OmkhD0OCswjNWL+50c0mTTaoc1M61xzWQv/BxxWc+muCro+Bj3hnD2cX0BauM12nHVYicgZy85P0S5vptN+uL+Qk= X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(136003)(39860400002)(346002)(396003)(376002)(46966006)(36840700001)(5660300002)(6286002)(55016002)(7696005)(316002)(54906003)(6916009)(2906002)(4326008)(82740400003)(36906005)(2616005)(47076005)(356005)(186003)(82310400003)(26005)(86362001)(426003)(36860700001)(8676002)(16526019)(36756003)(8936002)(6666004)(336012)(70206006)(1076003)(478600001)(70586007)(7636003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2021 13:53:01.0538 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0cd3315b-e81c-4d12-7c03-08d92f3bb982 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT056.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB3000 Subject: [dpdk-dev] [PATCH] net/mlx5: fix receiving queue timestamp format X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The timestamp format was not configured correctly for the receiving queues created via DevX calls. It caused non-UTC timestamps in CQEs for real time configurations. Fixes: d61381ad46d0 ("net/mlx5: support timestamp format") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_devx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_devx.c b/drivers/net/mlx5/mlx5_devx.c index 78b88f99b4..a1db53577a 100644 --- a/drivers/net/mlx5/mlx5_devx.c +++ b/drivers/net/mlx5/mlx5_devx.c @@ -249,6 +249,7 @@ mlx5_rxq_create_devx_rq_resources(struct rte_eth_dev *dev, uint16_t idx) rq_attr.vsd = (rxq_data->vlan_strip) ? 0 : 1; rq_attr.cqn = rxq_ctrl->obj->cq_obj.cq->id; rq_attr.scatter_fcs = (rxq_data->crc_present) ? 1 : 0; + rq_attr.ts_format = mlx5_ts_format_conv(priv->sh->rq_ts_format); /* Fill WQ attributes for this RQ. */ if (mlx5_rxq_mprq_enabled(rxq_data)) { rq_attr.wq_attr.wq_type = MLX5_WQ_TYPE_CYCLIC_STRIDING_RQ; -- 2.18.1