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 EE202A0093 for ; Tue, 23 Aug 2022 12:22:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 89E30406A2; Tue, 23 Aug 2022 12:22:48 +0200 (CEST) Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by mails.dpdk.org (Postfix) with ESMTP id 42442400D6 for ; Tue, 23 Aug 2022 12:22:47 +0200 (CEST) Received: by mail-lf1-f50.google.com with SMTP id m5so8368915lfj.4 for ; Tue, 23 Aug 2022 03:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc; bh=+dY2vIpjeNJoSoDkDcnwjIp0Vrr7ybtNyXW2Q67Xb+w=; b=bBkWMrRcoBJU2bhfwjPB6LrjkBqsIF2MJspcixyR2Ie37v8eBtINDrc5N8/MhfPp6J tS13WSh508i9II0jr4sqO9mLfe2CkdZJC84MbrEcp8+frvB9j50Dku9lBpXIdAut1Ybh YD6An0IwE4IQb/w/8c/NiBH1E3FoGr27EFzpj8P0B1sHYPzRt8DKo6qcJWRU2AYnGcX+ QjUdz2iUJAcaqM/3fH/TwGr0yOftx56xxblEBOPurohaQeopt1qO9MLSTZUFQrfs+Q3C nSN+ry3IWCBjzrjKyWpMz4BRQYkvLG/DCwJ905waHavr7zBmgT/8JnfDyAjmQLyEjjRa BzUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=+dY2vIpjeNJoSoDkDcnwjIp0Vrr7ybtNyXW2Q67Xb+w=; b=2qrreU+FCDGnblQcvcKDyTW1p5ECaFmFDMB4X0qGS4y+rhsVMbCmK4TTg76avCccVK 3TzEE2v9/8OGeRDWINsbqdDqogUe28vDtm7gXkUWPzcJmiUWhMFBtqK8DFidbkZKqV1u wuyB8Ud4e2u8LtftnXDdka4DDZ8mEAcZ2QMhORll7/kTNB8nSzQyUaJDIcKqscffE66T VVS8xCCDaeYUVsp9Cq/xR+gN3KwIx6IMVbtkUaI1ulVW4A24CW4FEprYZY0uGdtbGqxS zjTPHHDt2dwYlrzMrBsOGtO/1goNtvn9rZHVaWD+wqowgN9f9vh3gDxbVTbL0xd/0kqv GG0w== X-Gm-Message-State: ACgBeo3m6Jri5re72Od+LusRUWYLRGYDjrpGTRMP6wlCPQad+TzEVInr jKhXklRfTT3GC8IsSYk3eIo= X-Google-Smtp-Source: AA6agR6StpmmfAb3DTzQVeKlTQe0qNr6V3KdIpWvur84pMpuorYmIBfmxo539ea+7IWW/2qA+WEKlg== X-Received: by 2002:a05:6512:3f85:b0:492:c17e:d566 with SMTP id x5-20020a0565123f8500b00492c17ed566mr7429855lfa.341.1661250166579; Tue, 23 Aug 2022 03:22:46 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id h12-20020a19700c000000b0048aef1abb08sm2419229lfc.297.2022.08.23.03.22.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 03:22:46 -0700 (PDT) Date: Tue, 23 Aug 2022 13:22:45 +0300 From: Dmitry Kozlyuk To: Antonio Di Bacco Cc: users@dpdk.org Subject: Re: Can a DPDK API like rte_eth_dev_set_mtu be called by a normal pthread Message-ID: <20220823132245.5a9f9876@sovereign> In-Reply-To: References: X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org 2022-08-23 11:25 (UTC+0200), Antonio Di Bacco: > I have a DPDK process that also creates a normal pthread, is there > anything wrong to call a DPDK api from this normal pthread? Nothing wrong, this is allowed. You may be interested in rte_thread_register(), if you want to consider this thread as an lcore. Also, rte_socket_id() will return SOCKET_ID_ANY unless the thread is registered, for example.