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 31151A00C2; Wed, 28 Sep 2022 09:14:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BD4034113C; Wed, 28 Sep 2022 09:14:40 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2058.outbound.protection.outlook.com [40.107.22.58]) by mails.dpdk.org (Postfix) with ESMTP id 6A13F41133 for ; Wed, 28 Sep 2022 09:14:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YONLV+7ldZyVwLZLQkt8qkK+Q7H2oUB3gvgS4T6W5AJVrEHzO3LLUxtJFVDE/EnX5XhdM3HK7jrRN/2pn6+6w4AlGexPndxgHZC3Nqfkgb0MZtqSALm2BvoInq4Bg6JrpkEbNUJ5rxWyQMxy0lCCGUQsCN9g8jfLL/FO6Q0H60VCNvvznJZMg/GVtuLosJIpGN/0TjJqsJjRprHTZhYT4wYJtBGnsb5+DfQokvnDRjh6eOvVG5+M1eJVlWHiCCWtoExe5NnqFxEPl0ET7IN2TXwUxf4eCJIJMRUL8QNsVygVODhXfd+VaW6PVnfRCpQ21Sz5GGd6hVvBfPqBDJhsXw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CHesEGnoV/qp+rvUIyQukOSdUu62DW4KUxysoH/H1zc=; b=X8TGIIsM67dbVe1nmyQqFAUynfLmNLrZm7BRaxfYPkqUfwEGZ1l6kaGyMRiywQF1f2bbnFe/RcdqtyDgacMvYsy+PPPcsYIe8LmSPpoHji6o95qpm9VdXTd0UXaNyca01BJSKlgJpVhqjf4WEN6YU4YnhkvkvKaHc2FZBSBZyj1K84s8oo2NxkhsYIfvl8EQPK9iF2D0gFEStIFPFSfj6ULPGA7r/VEj910SzewZ4DMoD4W8NTprJC+8KkmwjYcJ8X2Dsx9JT47TXVGAaH1/kwDK2FuqVrW1I1W58pfGbFAm9c0lWkAw3YcxpNUf5qGYLNl3xBZPxY8X4eE03fSX5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CHesEGnoV/qp+rvUIyQukOSdUu62DW4KUxysoH/H1zc=; b=dPaqGQYyCUYzQ9yGO/SLNo5KO1sNQW6Yf+m8/ncZdWBuULI9qlxax0ZcdKTy0z8x9aq2UkgVQ33bUybJ+SG2EEUedzFCg9MUh036V4B4nGJ/ND4xhBHJ0aoESmVT1DiqO0UHS4gfkYWUGSYmuui2EUTquiy6dPKvpG07dgPRspw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) by AM0PR04MB6818.eurprd04.prod.outlook.com (2603:10a6:208:186::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Wed, 28 Sep 2022 07:14:38 +0000 Received: from AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::14d0:4458:d6ec:b8b1]) by AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::14d0:4458:d6ec:b8b1%7]) with mapi id 15.20.5676.017; Wed, 28 Sep 2022 07:14:38 +0000 From: Gagandeep Singh To: ferruh.yigit@amd.com, dev@dpdk.org, jiawenwu@trustnetic.com, hemant.agrawal@nxp.com Cc: Gagandeep Singh Subject: [PATCH 1/2] net/dpaa2: use new IEEE1588 flags Date: Wed, 28 Sep 2022 12:44:05 +0530 Message-Id: <20220928071406.1532345-1-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0198.apcprd04.prod.outlook.com (2603:1096:4:14::36) To AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8198:EE_|AM0PR04MB6818:EE_ X-MS-Office365-Filtering-Correlation-Id: e36e356b-574a-407f-672b-08daa1211a7f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DxAhQ6RiiNGyVG7o4Snvd76TIHykRg9wSQemrAS5SM3Nx1ny4OlMM0jL9+5v9b4CkClITzam4TmjxLnV0rB9hYQRN8uHexHfMe6Vln15TA8W4YKahwrarZN8aAXV6McGeHl7ypPwV6vtqOvjgk+Gkr3zf2Bzf5aY980bmJF5eMVZ5HNQG0gkBlCvfWG6xWSfeeZGa7hEzXPy8T+l/gW80+t80fdoZUn/XbMTYyG/bWvreyqBzOfpRJtDUJ5jyUIny8wCGsU2SJKEomZ4kc9mesRxs3LApuP6p4OIA+1kHPqnq+A5UbV5OOiAa3fpZ5Ph1DjJ3DkH40JLGFv5mxALp/zpSW7Udg+oN5v8TgVT2t/6D6CLpRBE7zPvLuNrQOhmIp2BSMCt4pQkULmMRjkFo9TKzJPktuzOk1OtjVr7ey3C1qEHbzfwYP6wiYEMOKfcoZ05H/+FGCoMxI01cQ+fREqnOapGfAp2b2y0VE6491mq5UPbP9V9cW1WoxnQJNBOsq3iFeFXY6COstimQTfTDcvYDU6CCaGsKe7SX+roI3u9RANUxPLCM9HJqoqHJmjhI8srxkidBZL9F98qArcRIJ2JDBoa7/uXoADPuJnt1sS8/iPi6AdWmkCD566YQ2xJDUIuZ4dSRZn/Of59h2M758IVXiC4PINJKfPhMnc23vDa1Aazw3+HnPJC2aFV8voBU38C7pUn0LTBRxoSPpcTXVygvN3Q0rGGtOSibICeI9qN2rT0OuHA14QFH7yFFcy5 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8198.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(39860400002)(396003)(376002)(366004)(136003)(346002)(451199015)(6506007)(2906002)(38350700002)(38100700002)(52116002)(5660300002)(26005)(86362001)(1076003)(36756003)(2616005)(6636002)(316002)(6486002)(186003)(6512007)(6666004)(8936002)(8676002)(41300700001)(66946007)(478600001)(66556008)(4326008)(66476007)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?M2S3sin3vj0bPtEAhWod1aAChoInjmFSsDj/gquEDYT0UshqRjdVPnVGYDd7?= =?us-ascii?Q?pxM2rAAomd1D7hhAkrY2/qpEskO5BsdJR//LmFNDZ2rDZbUQvxpm0ih/aeYC?= =?us-ascii?Q?IRX+G/xA1OF5MD9j3unQU3k9Oqj2ErtdLk15MLZSuzJ1rlQKBrfY4B6eebFK?= =?us-ascii?Q?jLzPqV0IO4/oIKmiS+I3R610g7gA7HO/czmNTxw2zGSqgfdscrz64l6HVJfN?= =?us-ascii?Q?m9zjZXX47gVcgQPAF9MlYokEClbb1u+7FIPRqiflDit0rHX2axJskeikJ1ui?= =?us-ascii?Q?HTt3z7GPI75ZxAh2EpXggCu6uMhi193+lrvrh9aJ/f8rfItTdIpOuKOWt94k?= =?us-ascii?Q?viKJ7l55sO/YpW+ALxCk2pPOUVBchiTDnOB64U87BDwYL3PWZ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80NpNdcvj4CIs/lEYqyAlOmS7Lpy9WcWS24SHSn8UmIB3?= =?us-ascii?Q?29qhGVLzwGws9fuaHsmtxn+9QoUyVrVextlN1Jmsz5P/SGYuAJ34+a4yYQRy?= =?us-ascii?Q?CLZ/lfZbE1gpefnH4m5WQkN0Z3TWoNsxBaCTZgXDWO0IHIZ/OATs0VyQHenx?= =?us-ascii?Q?aKPBzWcTrfZnxXxnM9Oglois2VF8dNipxpmk1gxOn7wAHltrbtmPwzJUGKI0?= =?us-ascii?Q?CnsMKNyEJM59cRyh7rvX4F37Zlu7YlQ4gYodcGEuJ7x9Kvv1xPhCxFdLhuHp?= =?us-ascii?Q?MEaar1WXdcKhZyE18w6gkWtjR6ixczdbccPPH1Um?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e36e356b-574a-407f-672b-08daa1211a7f X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2022 07:14:38.1582 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Fn0QwyzPv82yBReGTfoSG/AT6Z097/q1jtfjQ6fyWJJ8KwWBRFxyxqXYH8tIiHPU X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6818 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 Flags for IEEE1588 with ``PKT_*`` prefix has been changed to ``RTE_MBUF_F_*``. So in this patch updating the old flags. Signed-off-by: Gagandeep Singh --- drivers/net/dpaa2/dpaa2_rxtx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 9436a95ac8..ebb972c358 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -814,7 +814,7 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) else bufs[num_rx] = eth_fd_to_mbuf(fd, eth_data->port_id); #if defined(RTE_LIBRTE_IEEE1588) - if (bufs[num_rx]->ol_flags & PKT_RX_IEEE1588_TMST) { + if (bufs[num_rx]->ol_flags & RTE_MBUF_F_RX_IEEE1588_TMST) { priv->rx_timestamp = *dpaa2_timestamp_dynfield(bufs[num_rx]); } @@ -1035,7 +1035,7 @@ dpaa2_dev_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) eth_data->port_id); #if defined(RTE_LIBRTE_IEEE1588) - if (bufs[num_rx]->ol_flags & PKT_RX_IEEE1588_TMST) { + if (bufs[num_rx]->ol_flags & RTE_MBUF_F_RX_IEEE1588_TMST) { priv->rx_timestamp = *dpaa2_timestamp_dynfield(bufs[num_rx]); } @@ -1166,7 +1166,7 @@ uint16_t dpaa2_dev_tx_conf(void *queue) mbuf = DPAA2_INLINE_MBUF_FROM_BUF(v_addr, rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size); - if (mbuf->ol_flags & PKT_TX_IEEE1588_TMST) { + if (mbuf->ol_flags & RTE_MBUF_F_TX_IEEE1588_TMST) { annotation = (struct dpaa2_annot_hdr *)((size_t) DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)) + DPAA2_FD_PTA_SIZE); @@ -1247,7 +1247,7 @@ dpaa2_dev_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) * corresponding to last packet transmitted for reading * the timestamp */ - if ((*bufs)->ol_flags & PKT_TX_IEEE1588_TMST) { + if ((*bufs)->ol_flags & RTE_MBUF_F_TX_IEEE1588_TMST) { priv->next_tx_conf_queue = dpaa2_q->tx_conf_queue; dpaa2_dev_tx_conf(dpaa2_q->tx_conf_queue); priv->tx_timestamp = 0; -- 2.25.1