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 99E86A034C; Thu, 18 Aug 2022 14:23:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 427C840694; Thu, 18 Aug 2022 14:23:50 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by mails.dpdk.org (Postfix) with ESMTP id EF40B40156 for ; Thu, 18 Aug 2022 14:23:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RPvmyH2T3sVDIHpqEbPR/wSRPG6+B5ZE5xCnWmRG+s2PpRqHt3a+aEw6W7zlA4RGrAORPtsESiZipZyXntxxSPCTC+3rMDD3zyahqOKt40aZAqUZjGuWz0VxcpzVva73KF0yU4p+QwTAwDB5R0t3CMUvDwnZQSvBNLaPIovCCwHsQpf0oRFnWylKi6GQ5jozEtE6htdtO+FY+6n86LML0AdNLwJdXd4bBDHjY+DKQ8kk7Krt55aZ7lCwZFI5+b7PR5dZL/9R8OdZ9gVqoXSPdz0GHq88WBJr+cU1YpJSVOnrXdWHoiWEiQaejmtDk1MRmD//pcAONB7oXqQCcQNPHA== 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=dB7ficNATwkwmiUNiSu20Eeqk1r6bgp9dV9b4Dj2ufA=; b=d8FwOHr+mqt/59UESpfIMmOK6ZMQIkS+tE9EHFayWzMIfZYEEj/oZASxpZfAD8fugbfzqxeXnEnwQLIvXezbt+KcFxYWfcCuvS1I5jUIEk8vcJUmO7yGAD2njb7byWN4Tsx8+/S3z9RBnC1/N62JU1B82iWF+wgs7Ukr/CZPFMWYcaF8/dX0OwUw5GSGimWt42Qiu+qWCzy/CuOY9dvAXE0Mtf4iUbPSjl2ZC9RVP77BPZSt/qWyOfUp47HAULLds8Qpag6hIjqO9P9I49LNMsqGxNi1u26+WRjxpI8SRiIryNqwgI2LDjalW0ibrKxXgVCIBTGHpcl0kwatbzAWOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.80.198) smtp.rcpttodomain=smartsharesystems.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dB7ficNATwkwmiUNiSu20Eeqk1r6bgp9dV9b4Dj2ufA=; b=KVM8hWU1TRK114fmOipjtIkymsSU7gM5kYVPUeQdcZoMGiO51xZCIquQuo0JQihzwXw0Vvnvm1Yfvb/W658xdbERYL8j2BEYWqM1r/bj5LD+1P4Aa4NnftJzvcG8ihSTUBk3cJ0+Rowa1OdlV2B0j1wOIcW0Y0A3K1PsOszY9g0= Received: from DM6PR21CA0022.namprd21.prod.outlook.com (2603:10b6:5:174::32) by DM4PR02MB8959.namprd02.prod.outlook.com (2603:10b6:8:8a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Thu, 18 Aug 2022 12:23:44 +0000 Received: from DM3NAM02FT039.eop-nam02.prod.protection.outlook.com (2603:10b6:5:174:cafe::6b) by DM6PR21CA0022.outlook.office365.com (2603:10b6:5:174::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5546.14 via Frontend Transport; Thu, 18 Aug 2022 12:23:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.80.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.80.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.80.198; helo=xir-pvapexch02.xlnx.xilinx.com; pr=C Received: from xir-pvapexch02.xlnx.xilinx.com (149.199.80.198) by DM3NAM02FT039.mail.protection.outlook.com (10.13.5.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5546.15 via Frontend Transport; Thu, 18 Aug 2022 12:23:42 +0000 Received: from xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) by xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 18 Aug 2022 13:23:41 +0100 Received: from smtp.xilinx.com (172.21.105.198) by xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 18 Aug 2022 13:23:41 +0100 Envelope-to: mb@smartsharesystems.com, thomas@monjalon.net, andrew.rybchenko@oktetlabs.ru, dev@dpdk.org Received: from [10.71.194.74] (port=63003) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oOeYm-0007zV-Eg; Thu, 18 Aug 2022 13:23:40 +0100 Message-ID: Date: Thu, 18 Aug 2022 13:23:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [PATCH] ethdev: rte_eth_rx_queue_count is a dataplane function Content-Language: en-US To: =?UTF-8?Q?Morten_Br=c3=b8rup?= , , CC: References: <20220818093744.76157-1-mb@smartsharesystems.com> From: Ferruh Yigit In-Reply-To: <20220818093744.76157-1-mb@smartsharesystems.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c142906b-bc0e-4404-6d52-08da81147d88 X-MS-TrafficTypeDiagnostic: DM4PR02MB8959:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PyFoPTPu0OcQjw65v/T4X+cQ0aRwEOqehrjJ9sgONQ21jksCl2CfouDQK7RqKUtMY8mn7thbAAp5isctR+bUKSeXojQAVvGWsgM3oGVC+Q3Xjrl6B/dFFBM0hai4XNPZH//GmB09louZaoLm/cIDBWOqM/PxpBdIttOq2n1dOVV4AAPj7Pdqvq6HHT9q9TF5vKLqg8cQdNNhIo8Y66tKrZM0qYV4Ny9v09EHB2Xs2w2SP5pfhSFVe27XJXKqsil0fjgra0FkNG9k12aNjx0d2I+6edLlAPPZILSSSXVeojU6MxzSoLd7ih3M4x/MjwujKch0JmJFHsGpxVTFV/zQIzUCQzAdCinoplcx4fp49yRX9aZJTZOXa0RlDMV/HOwPQS63eaaQe0dcWz82KWHt1XSkNTvLECogO2oX7IGLzujjB37QWApqj+0VzTvXibWsZR04A9xMxlX0r+YZr/usJRXI5K2gt6g5R2l6RQ+zNAnNnQ48ahI4UX+AI2WBVSg70B6p9xCBekq8moYUgpxpSy2+AY6MXzv+IZPfKJQPuW/osjzCO1Fwqe6W0yQ52WKVqHppZqZRAyebiQW4D7T/Eze3ujDgVvcnFF5JjoyHd5M8WBptB4t9esTufJErZ/ndgfUHurfyp371senzG0bfky+HFU9FEUIZUmpKu1kbKGZut8AiZJIfs8qrcER9CbPXvvA1n8275u9u/DgJl2+WLsuPB/ooSCH7OAsW3q39YmZ02Sa4Zdh/ZWewi/ENbuKT/mfrS+1PpxGZz36fnW2+mI07oDkEyBQeNZWwYGbUF0VP94ZTW0pVN47viwPd+zhtFSPz+0RrCMX/JVocnpp7mw== X-Forefront-Antispam-Report: CIP:149.199.80.198; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:xir-pvapexch02.xlnx.xilinx.com; PTR:unknown-80-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(396003)(346002)(136003)(376002)(36840700001)(40470700004)(46966006)(82310400005)(7636003)(356005)(26005)(31696002)(82740400003)(53546011)(5660300002)(9786002)(8936002)(40460700003)(478600001)(316002)(2906002)(4326008)(41300700001)(8676002)(70586007)(2616005)(44832011)(40480700001)(36860700001)(426003)(31686004)(4744005)(186003)(36756003)(110136005)(47076005)(336012)(70206006)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2022 12:23:42.9268 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c142906b-bc0e-4404-6d52-08da81147d88 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.80.198]; Helo=[xir-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT039.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR02MB8959 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 On 8/18/2022 10:37 AM, Morten Brørup wrote: > Applications may use rte_eth_rx_queue_count() in the RX stage of the > dataplane, so only check the function parameters if built with > RTE_ETHDEV_DEBUG_RX. > > Signed-off-by: Morten Brørup I don't remember if those checks done by default intentionally, but I don't think so, And since other relevant functions do the same thing: Acked-by: Ferruh Yigit